zakihassan04 commited on
Commit
1a9fa5d
·
verified ·
1 Parent(s): e76c3d6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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(source="upload", 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."
 
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."