Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -34,14 +34,14 @@ def transcribe_audio(audio_file):
|
|
34 |
return transcribed_text
|
35 |
|
36 |
# Create a Gradio interface
|
37 |
-
|
38 |
-
|
39 |
|
40 |
# Instantiate the Gradio interface
|
41 |
app = gr.Interface(
|
42 |
fn=transcribe_audio,
|
43 |
-
inputs=
|
44 |
-
outputs=
|
45 |
title="Audio Transcription with Whisper Model",
|
46 |
description="Upload an audio file to transcribe it into text using the Whisper model.",
|
47 |
theme="compact"
|
|
|
34 |
return transcribed_text
|
35 |
|
36 |
# Create a Gradio interface
|
37 |
+
audio_input = gr.Audio(source="upload",type="filepath")
|
38 |
+
output_text = gr.Textbox(label="Transcribed Text")
|
39 |
|
40 |
# Instantiate the Gradio interface
|
41 |
app = gr.Interface(
|
42 |
fn=transcribe_audio,
|
43 |
+
inputs=audio_input,
|
44 |
+
outputs=output_text,
|
45 |
title="Audio Transcription with Whisper Model",
|
46 |
description="Upload an audio file to transcribe it into text using the Whisper model.",
|
47 |
theme="compact"
|