Alimubariz124 commited on
Commit
249f940
·
verified ·
1 Parent(s): 3febded

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -6
app.py CHANGED
@@ -34,16 +34,15 @@ def transcribe_audio(audio_file):
34
  return transcribed_text
35
 
36
  # Create a Gradio interface
37
- audio_input = gr.Audio(label="Upload Audio File")
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=[
45
- "textbox"
46
- ],
47
  title="Audio Transcription with Whisper Model",
48
  description="Upload an audio file to transcribe it into text using the Whisper model.",
49
  theme="compact"
 
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
+
 
46
  title="Audio Transcription with Whisper Model",
47
  description="Upload an audio file to transcribe it into text using the Whisper model.",
48
  theme="compact"