avinash commited on
Commit
d425d6c
·
1 Parent(s): 2ddcf2d
Files changed (1) hide show
  1. app.py +5 -6
app.py CHANGED
@@ -1,4 +1,3 @@
1
- # app.py
2
  import gradio as gr
3
  from asr import transcribe_audio
4
 
@@ -9,11 +8,11 @@ def process_audio(audio):
9
 
10
  ui = gr.Interface(
11
  fn=process_audio,
12
- inputs=gr.Audio(source="microphone", type="filepath"),
13
- outputs="text",
14
- title="🎤 Whisper ASR Tester",
15
- description="Speak into the mic and see the transcribed text using Whisper-tiny."
16
  )
17
 
18
  if __name__ == "__main__":
19
- ui.launch()
 
 
1
  import gradio as gr
2
  from asr import transcribe_audio
3
 
 
8
 
9
  ui = gr.Interface(
10
  fn=process_audio,
11
+ inputs=gr.Audio(type="filepath", label="Upload your voice (.wav / .mp3)"),
12
+ outputs=gr.Textbox(label="Transcribed Text"),
13
+ title="🎤 Whisper Tiny ASR Demo",
14
+ description="Upload a voice file. It uses Whisper-tiny for transcription."
15
  )
16
 
17
  if __name__ == "__main__":
18
+ ui.launch()