Walid-Ahmed commited on
Commit
2dfb07f
·
verified ·
1 Parent(s): 241d86b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -32,11 +32,11 @@ def transcribe_and_summarize(audio):
32
  demo = gr.Interface(
33
  fn=transcribe_and_summarize, # The function to be called for transcription
34
  inputs=gr.Audio(type="filepath", label="Upload your audio file"), # Input audio field
35
- outputs=gr.Textbox(label="Transcription"), # Output transcription
36
- title="Whisper Speech-to-Text", # Title of the interface
37
- description="Record audio using your microphone and get a transcription using the Whisper model."
38
  )
39
 
40
  # Launch the Gradio interface
41
- demo.launch()
42
 
 
32
  demo = gr.Interface(
33
  fn=transcribe_and_summarize, # The function to be called for transcription
34
  inputs=gr.Audio(type="filepath", label="Upload your audio file"), # Input audio field
35
+ outputs=[gr.Textbox(label="Transcription"), gr.Textbox(label="Summary")], # Output fields
36
+ title="Whisper Tiny Transcription and Summarization",
37
+ description="Upload an audio file, get the transcription from Whisper tiny model and the summarized version using Hugging Face."
38
  )
39
 
40
  # Launch the Gradio interface
41
+ demo.launch(debug=True)
42