Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
36 |
-
title="Whisper
|
37 |
-
description="
|
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 |
|