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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -34,13 +34,13 @@ def transcribe_audio(audio_file):
34
  return transcribed_text
35
 
36
  # Create a Gradio interface
37
- #audio_input = gr.Audio(source="microphone", 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=gr.Audio(source="microphone", type="filepath"),
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.",
 
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.",