arxivgpt kim commited on
Commit
e5b527a
ยท
verified ยท
1 Parent(s): 48aba8d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -3
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()