kh-CHEUNG commited on
Commit
7e7d477
·
verified ·
1 Parent(s): 3fee0c7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -130,7 +130,7 @@ chat_interface = gr.ChatInterface(
130
 
131
  with gr.Blocks() as demo:
132
  gr.TabbedInterface([transcribe_interface, chat_interface], ["Step 1: Transcribe", "Step 2: Extract"])
133
- @audio_input_choice.change(audio_input_choice, audio_input)
134
  def update_audio_input(audio_input_choice):
135
  if audio_input_choice == "audio file":
136
  return gr.Audio(sources="upload", type="filepath", label="Audio: from file")
 
130
 
131
  with gr.Blocks() as demo:
132
  gr.TabbedInterface([transcribe_interface, chat_interface], ["Step 1: Transcribe", "Step 2: Extract"])
133
+ @audio_input_choice.input(audio_input_choice, audio_input)
134
  def update_audio_input(audio_input_choice):
135
  if audio_input_choice == "audio file":
136
  return gr.Audio(sources="upload", type="filepath", label="Audio: from file")