Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -19,7 +19,7 @@ def transcribe(audio):
|
|
19 |
# Create the Gradio interface
|
20 |
demo = gr.Interface(
|
21 |
fn=transcribe, # The function to be called for transcription
|
22 |
-
inputs=gr.Audio(
|
23 |
outputs=gr.Textbox(label="Transcription"), # Output transcription
|
24 |
title="Whisper Speech-to-Text", # Title of the interface
|
25 |
description="Record audio using your microphone and get a transcription using the Whisper model."
|
|
|
19 |
# Create the Gradio interface
|
20 |
demo = gr.Interface(
|
21 |
fn=transcribe, # The function to be called for transcription
|
22 |
+
inputs=gr.Audio(type="filepath", label="Upload your audio file"), # Input audio field
|
23 |
outputs=gr.Textbox(label="Transcription"), # Output transcription
|
24 |
title="Whisper Speech-to-Text", # Title of the interface
|
25 |
description="Record audio using your microphone and get a transcription using the Whisper model."
|