Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -30,7 +30,7 @@ def transcribe_audio(audio):
|
|
| 30 |
# Create the Gradio interface
|
| 31 |
interface = gr.Interface(
|
| 32 |
fn=transcribe_audio, # Function to call
|
| 33 |
-
inputs=gr.Audio(
|
| 34 |
outputs=gr.Textbox(label="Transcription"), # Output: Display transcription
|
| 35 |
title="Whisper ASR: Tinyyyy Model",
|
| 36 |
description="Upload an audio file, and the fine-tuned Whisper model will transcribe it.",
|
|
|
|
| 30 |
# Create the Gradio interface
|
| 31 |
interface = gr.Interface(
|
| 32 |
fn=transcribe_audio, # Function to call
|
| 33 |
+
inputs=gr.Audio(type="numpy"), # Input: Upload audio file
|
| 34 |
outputs=gr.Textbox(label="Transcription"), # Output: Display transcription
|
| 35 |
title="Whisper ASR: Tinyyyy Model",
|
| 36 |
description="Upload an audio file, and the fine-tuned Whisper model will transcribe it.",
|