Alimubariz124 commited on
Commit
1651123
·
verified ·
1 Parent(s): 6b5c816

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -34,14 +34,14 @@ def transcribe_audio(audio_file):
34
  return transcribed_text
35
 
36
  # Create a Gradio interface
37
- #audio_input = gr.Audio()
38
- #output_text = gr.Textbox(label="Transcribed Text")
39
 
40
  # Instantiate the Gradio interface
41
  app = gr.Interface(
42
  fn=transcribe_audio,
43
- inputs=gr.Audio(),
44
- outputs="text",
45
  title="Audio Transcription with Whisper Model",
46
  description="Upload an audio file to transcribe it into text using the Whisper model.",
47
  theme="compact"
 
34
  return transcribed_text
35
 
36
  # Create a Gradio interface
37
+ audio_input = gr.Audio(source="upload",type="filepath")
38
+ output_text = gr.Textbox(label="Transcribed Text")
39
 
40
  # Instantiate the Gradio interface
41
  app = gr.Interface(
42
  fn=transcribe_audio,
43
+ inputs=audio_input,
44
+ outputs=output_text,
45
  title="Audio Transcription with Whisper Model",
46
  description="Upload an audio file to transcribe it into text using the Whisper model.",
47
  theme="compact"