Update app.py
Browse files
app.py
CHANGED
|
@@ -22,10 +22,10 @@ def transcribe(audio):
|
|
| 22 |
transcription = processor.decode(predicted_ids[0])
|
| 23 |
return transcription
|
| 24 |
|
| 25 |
-
# Gradio Interface
|
| 26 |
interface = gr.Interface(
|
| 27 |
fn=transcribe,
|
| 28 |
-
inputs=gr.Audio(
|
| 29 |
outputs=gr.Textbox(label="Transcription"),
|
| 30 |
title="Somali ASR using Mustafaa4a/ASR-Somali",
|
| 31 |
description="Upload a Somali speech audio file (mono WAV, 16kHz) and get the text transcription."
|
|
|
|
| 22 |
transcription = processor.decode(predicted_ids[0])
|
| 23 |
return transcription
|
| 24 |
|
| 25 |
+
# Gradio Interface (updated: removed source)
|
| 26 |
interface = gr.Interface(
|
| 27 |
fn=transcribe,
|
| 28 |
+
inputs=gr.Audio(type="filepath", label="Upload Somali Audio (.wav)"),
|
| 29 |
outputs=gr.Textbox(label="Transcription"),
|
| 30 |
title="Somali ASR using Mustafaa4a/ASR-Somali",
|
| 31 |
description="Upload a Somali speech audio file (mono WAV, 16kHz) and get the text transcription."
|