Update app.py
Browse files
app.py
CHANGED
@@ -50,15 +50,16 @@ with gr.Blocks() as demo:
|
|
50 |
status_message = gr.Textbox(label="Status", interactive=False)
|
51 |
|
52 |
def update_output(filepath):
|
53 |
-
|
|
|
54 |
transcribed_text, text_file_path = transcribe_speech(filepath)
|
55 |
-
|
56 |
-
|
57 |
|
58 |
transcribe_button.click(
|
59 |
fn=update_output,
|
60 |
inputs=audio_input,
|
61 |
-
outputs=[output_textbox, download_link
|
62 |
)
|
63 |
|
64 |
# Launch the Gradio app
|
|
|
50 |
status_message = gr.Textbox(label="Status", interactive=False)
|
51 |
|
52 |
def update_output(filepath):
|
53 |
+
yield "Downloading model (2-3mins)...", "", None
|
54 |
+
|
55 |
transcribed_text, text_file_path = transcribe_speech(filepath)
|
56 |
+
|
57 |
+
yield "Transcription completed", transcribed_text, text_file_path
|
58 |
|
59 |
transcribe_button.click(
|
60 |
fn=update_output,
|
61 |
inputs=audio_input,
|
62 |
+
outputs=[status_message, output_textbox, download_link]
|
63 |
)
|
64 |
|
65 |
# Launch the Gradio app
|