Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -13,7 +13,7 @@ def transcribe_audio(audio):
|
|
| 13 |
# Create a Gradio interface for the audio input and transcription output
|
| 14 |
interface = gr.Interface(
|
| 15 |
fn=transcribe_audio, # Function that handles the transcription
|
| 16 |
-
inputs=gr.Audio(
|
| 17 |
outputs="text", # Output as text
|
| 18 |
title="Whisper Speech Recognition",
|
| 19 |
description="Transcribe speech to text using OpenAI's Whisper model."
|
|
|
|
| 13 |
# Create a Gradio interface for the audio input and transcription output
|
| 14 |
interface = gr.Interface(
|
| 15 |
fn=transcribe_audio, # Function that handles the transcription
|
| 16 |
+
inputs=gr.Audio(type="filepath"), # Input as audio, no need for 'source' argument
|
| 17 |
outputs="text", # Output as text
|
| 18 |
title="Whisper Speech Recognition",
|
| 19 |
description="Transcribe speech to text using OpenAI's Whisper model."
|