Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -25,16 +25,20 @@ def transcribe_and_summarize(filepath):
|
|
25 |
mic_transcribe = gr.Interface(
|
26 |
fn=transcribe_and_summarize,
|
27 |
inputs=gr.Audio(sources="microphone", type="filepath"),
|
28 |
-
outputs=
|
29 |
-
|
|
|
|
|
30 |
allow_flagging="never"
|
31 |
)
|
32 |
|
33 |
file_transcribe = gr.Interface(
|
34 |
fn=transcribe_and_summarize,
|
35 |
inputs=gr.Audio(sources="upload", type="filepath"),
|
36 |
-
outputs=
|
37 |
-
|
|
|
|
|
38 |
allow_flagging="never"
|
39 |
)
|
40 |
|
|
|
25 |
mic_transcribe = gr.Interface(
|
26 |
fn=transcribe_and_summarize,
|
27 |
inputs=gr.Audio(sources="microphone", type="filepath"),
|
28 |
+
outputs=[
|
29 |
+
gr.Textbox(label="Transcript", lines=3),
|
30 |
+
gr.Textbox(label="Summary", lines=3)
|
31 |
+
],
|
32 |
allow_flagging="never"
|
33 |
)
|
34 |
|
35 |
file_transcribe = gr.Interface(
|
36 |
fn=transcribe_and_summarize,
|
37 |
inputs=gr.Audio(sources="upload", type="filepath"),
|
38 |
+
outputs=[
|
39 |
+
gr.Textbox(label="Transcript", lines=3),
|
40 |
+
gr.Textbox(label="Summary", lines=3)
|
41 |
+
],
|
42 |
allow_flagging="never"
|
43 |
)
|
44 |
|