amrelshall commited on
Commit
2ccb463
1 Parent(s): f6ed4b1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -7
app.py CHANGED
@@ -16,18 +16,16 @@ def transcribe_long_form(filepath):
16
  )
17
  return output["text"]
18
 
19
- # mic button
20
  mic_transcribe = gr.Interface(
21
- fn=transcribe_speech,
22
  inputs=gr.Audio(sources="microphone",
23
  type="filepath"),
24
  outputs=gr.Textbox(label="Transcription",
25
  lines=3),
26
  allow_flagging="never")
27
 
28
- # upload button
29
  file_transcribe = gr.Interface(
30
- fn=transcribe_speech,
31
  inputs=gr.Audio(sources="upload",
32
  type="filepath"),
33
  outputs=gr.Textbox(label="Transcription",
@@ -40,7 +38,6 @@ with demo:
40
  [mic_transcribe,
41
  file_transcribe],
42
  ["Transcribe Microphone",
43
- "Transcribe Audio File"],
44
- )
45
 
46
- demo.launch()
 
16
  )
17
  return output["text"]
18
 
 
19
  mic_transcribe = gr.Interface(
20
+ fn=transcribe_long_form,
21
  inputs=gr.Audio(sources="microphone",
22
  type="filepath"),
23
  outputs=gr.Textbox(label="Transcription",
24
  lines=3),
25
  allow_flagging="never")
26
 
 
27
  file_transcribe = gr.Interface(
28
+ fn=transcribe_long_form,
29
  inputs=gr.Audio(sources="upload",
30
  type="filepath"),
31
  outputs=gr.Textbox(label="Transcription",
 
38
  [mic_transcribe,
39
  file_transcribe],
40
  ["Transcribe Microphone",
41
+ "Transcribe Audio File"])
 
42
 
43
+ demo.launch()