s03f3ff commited on
Commit
457a841
·
verified ·
1 Parent(s): c22917e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -4
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=gr.Textbox(label="Transcript", type="auto", lines=10),
29
- outputs=gr.Textbox(label="Summary", lines=3),
 
 
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=gr.Textbox(label="Transcript", type="auto", lines=10),
37
- outputs=gr.Textbox(label="Summary", lines=3),
 
 
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