Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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.
|
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")
|