Subbu1304 commited on
Commit
5656ca3
·
verified ·
1 Parent(s): 7c27fc9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -12,10 +12,11 @@ def transcribe(audio):
12
  # Gradio Interface
13
  demo = gr.Interface(
14
  fn=transcribe,
15
- inputs=gr.Audio(source="microphone", type="filepath"),
16
  outputs=gr.Textbox(label="Transcription"),
17
  title="Speech to Text with Hugging Face ASR",
18
- description="Speak into the microphone and get real-time transcription using OpenAI Whisper."
 
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()