kh-CHEUNG commited on
Commit
cddb038
·
verified ·
1 Parent(s): 92619b0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -134,9 +134,9 @@ def update_audio_input(audio_input_choice):
134
  elif audio_input_choice == "microphone":
135
  return gr.Audio(sources="microphone", type="filepath", label="Audio: from microphone")
136
 
 
137
  with demo:
138
  gr.TabbedInterface([transcribe_interface, chat_interface], ["Step 1: Transcribe", "Step 2: Extract"])
139
- audio_input_choice.change(update_audio_input, audio_input_choice, audio_input)
140
 
141
  if __name__ == "__main__":
142
  demo.queue().launch() #demo.launch()
 
134
  elif audio_input_choice == "microphone":
135
  return gr.Audio(sources="microphone", type="filepath", label="Audio: from microphone")
136
 
137
+ audio_input_choice.change(update_audio_input, audio_input_choice, audio_input)
138
  with demo:
139
  gr.TabbedInterface([transcribe_interface, chat_interface], ["Step 1: Transcribe", "Step 2: Extract"])
 
140
 
141
  if __name__ == "__main__":
142
  demo.queue().launch() #demo.launch()