Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,10 +12,11 @@ def transcribe(audio):
|
|
| 12 |
# Gradio Interface
|
| 13 |
demo = gr.Interface(
|
| 14 |
fn=transcribe,
|
| 15 |
-
inputs=gr.Audio(
|
| 16 |
outputs=gr.Textbox(label="Transcription"),
|
| 17 |
title="Speech to Text with Hugging Face ASR",
|
| 18 |
-
description="
|
|
|
|
| 19 |
)
|
| 20 |
|
| 21 |
demo.launch()
|
|
|
|
| 12 |
# Gradio Interface
|
| 13 |
demo = gr.Interface(
|
| 14 |
fn=transcribe,
|
| 15 |
+
inputs=gr.Audio(type="filepath"), # Remove 'source' argument
|
| 16 |
outputs=gr.Textbox(label="Transcription"),
|
| 17 |
title="Speech to Text with Hugging Face ASR",
|
| 18 |
+
description="Click the button and speak. Your voice will be transcribed using OpenAI Whisper.",
|
| 19 |
+
live=True # Enables real-time transcription
|
| 20 |
)
|
| 21 |
|
| 22 |
demo.launch()
|