Shanuka01 commited on
Commit
a1f4950
·
1 Parent(s): 7c2ef08

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -20,7 +20,7 @@ def transcribe(audio_file):
20
  # Create the Gradio interface
21
  iface = gr.Interface(
22
  fn=transcribe,
23
- inputs=gr.Audio(source="upload", type="file", label="Upload your audio file"),
24
  outputs="text",
25
  title="Whisper ASR",
26
  description="Upload an audio file and it will be transcribed using OpenAI's Whisper model."
@@ -28,4 +28,4 @@ iface = gr.Interface(
28
 
29
  # Launch the app
30
  if __name__ == "__main__":
31
- iface.launch()
 
20
  # Create the Gradio interface
21
  iface = gr.Interface(
22
  fn=transcribe,
23
+ inputs=gr.Audio(label="Upload your audio file"),
24
  outputs="text",
25
  title="Whisper ASR",
26
  description="Upload an audio file and it will be transcribed using OpenAI's Whisper model."
 
28
 
29
  # Launch the app
30
  if __name__ == "__main__":
31
+ iface.launch()