Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -27,7 +27,7 @@ def speech_to_text(audio_file):
|
|
| 27 |
# Set up the Gradio interface
|
| 28 |
iface = gr.Interface(
|
| 29 |
fn=speech_to_text, # Function to be executed
|
| 30 |
-
inputs=gr.Audio(
|
| 31 |
outputs=gr.Textbox(), # Display transcription in a text box
|
| 32 |
title="Speech-to-Text Analyzer for Lecture Notes",
|
| 33 |
description="Upload an audio file (e.g., lecture recording) to get the transcription of the speech."
|
|
|
|
| 27 |
# Set up the Gradio interface
|
| 28 |
iface = gr.Interface(
|
| 29 |
fn=speech_to_text, # Function to be executed
|
| 30 |
+
inputs=gr.Audio(type="file"), # Allow audio file upload without the 'source' argument
|
| 31 |
outputs=gr.Textbox(), # Display transcription in a text box
|
| 32 |
title="Speech-to-Text Analyzer for Lecture Notes",
|
| 33 |
description="Upload an audio file (e.g., lecture recording) to get the transcription of the speech."
|