import gradio as gr # HTML 위젯 코드. 실제 ``와 ``는 적절한 값으로 대체해야 합니다. widget_html = """
""" def show_widget(): # Gradio HTML 컴포넌트에 위젯 코드를 전달합니다. return widget_html # Gradio 인터페이스 생성 iface = gr.Interface( fn=show_widget, inputs=[], # 입력 없음 outputs=gr.outputs.HTML(label="Vapi Voice Widget"), # HTML 출력 title="Vapi Voice Widget Integration Example", description="This is an example of integrating the Vapi Voice Widget into a Gradio web app." ) # 인터페이스 실행 iface.launch()