arxivgpt kim commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -58,15 +58,21 @@ def show_widget():
|
|
| 58 |
return widget_html
|
| 59 |
|
| 60 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 61 |
iface = gr.Interface(
|
| 62 |
fn=show_widget,
|
| 63 |
inputs=[],
|
| 64 |
outputs=gr.HTML(label="Vapi Voice Widget"),
|
| 65 |
title="Vapi Voice Widget Integration Example",
|
| 66 |
description="This is an example of integrating the Vapi Voice Widget into a Gradio web app.",
|
| 67 |
-
live=True # live ๋ชจ๋ ํ์ฑํ
|
|
|
|
| 68 |
)
|
| 69 |
|
| 70 |
-
|
| 71 |
# ์ธํฐํ์ด์ค ์คํ
|
| 72 |
-
iface.launch()
|
|
|
|
| 58 |
return widget_html
|
| 59 |
|
| 60 |
|
| 61 |
+
css = """
|
| 62 |
+
.gradio button.gr-button:enabled {
|
| 63 |
+
display: none;
|
| 64 |
+
}
|
| 65 |
+
"""
|
| 66 |
+
|
| 67 |
iface = gr.Interface(
|
| 68 |
fn=show_widget,
|
| 69 |
inputs=[],
|
| 70 |
outputs=gr.HTML(label="Vapi Voice Widget"),
|
| 71 |
title="Vapi Voice Widget Integration Example",
|
| 72 |
description="This is an example of integrating the Vapi Voice Widget into a Gradio web app.",
|
| 73 |
+
live=True, # live ๋ชจ๋ ํ์ฑํ
|
| 74 |
+
css=css # CSS๋ฅผ ์ถ๊ฐํ์ฌ "Generate" ๋ฒํผ์ ์จ๊น๋๋ค.
|
| 75 |
)
|
| 76 |
|
|
|
|
| 77 |
# ์ธํฐํ์ด์ค ์คํ
|
| 78 |
+
iface.launch()
|