s03f3ff commited on
Commit
b940808
·
verified ·
1 Parent(s): e0eb5a2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -3
app.py CHANGED
@@ -10,8 +10,21 @@ def launch(input):
10
  out2 = pipe2(out)
11
  return out2[0]['summarized notes']
12
 
13
- iface = gr.Interface(launch,
14
- inputs=gr.Audio(type='mp3'),
15
- outputs="text")
 
 
 
 
 
 
 
 
 
 
 
 
 
16
 
17
  iface.launch()
 
10
  out2 = pipe2(out)
11
  return out2[0]['summarized notes']
12
 
13
+ mic_transcribe = gr.Interface(
14
+ fn=transcribe_long_form,
15
+ inputs=gr.Audio(sources="microphone",
16
+ type="filepath"),
17
+ outputs=gr.Textbox(label="Transcription",
18
+ lines=3),
19
+ allow_flagging="never")
20
+
21
+ file_transcribe = gr.Interface(
22
+ fn=transcribe_long_form,
23
+ inputs=gr.Audio(sources="upload",
24
+ type="filepath"),
25
+ outputs=gr.Textbox(label="Transcription",
26
+ lines=3),
27
+ allow_flagging="never",
28
+ )
29
 
30
  iface.launch()