Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -10,8 +10,21 @@ def launch(input):
|
|
10 |
out2 = pipe2(out)
|
11 |
return out2[0]['summarized notes']
|
12 |
|
13 |
-
|
14 |
-
|
15 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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()
|