fffiloni commited on
Commit
a8675ab
·
1 Parent(s): fa65db5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -82,7 +82,7 @@ def call_api(message, openai_api_key):
82
  return str(response.choices[0].text).split("\n",2)[2]
83
 
84
  def clean_components():
85
- return gr.Audio(source="microphone",type="filepath", label="Audio input", show_label=True, elem_id="record_btn"), gr.HTML.update(visible=False), gr.Textbox.update(visible=False), gr.Button(visible=False)
86
 
87
  title = """
88
  <div style="text-align: center; max-width: 500px; margin: 0 auto;">
 
82
  return str(response.choices[0].text).split("\n",2)[2]
83
 
84
  def clean_components():
85
+ return gr.Audio.update(), gr.HTML.update(visible=False), gr.Textbox.update(visible=False), gr.Button(visible=False)
86
 
87
  title = """
88
  <div style="text-align: center; max-width: 500px; margin: 0 auto;">