Teapack1 commited on
Commit
34d3b12
1 Parent(s): 8a9e88a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -18,13 +18,13 @@ def classify_audio(filepath):
18
 
19
  demo = gr.Blocks()
20
 
21
- mic_transcribe = gr.Interface(
22
  fn=classify_audio,
23
  inputs=gr.Audio(sources="microphone", type="filepath"),
24
  outputs=gr.outputs.Label()
25
  )
26
 
27
- mic_transcribe = gr.Interface(
28
  fn=classify_audio,
29
  inputs=gr.Audio(sources="upload", type="filepath"),
30
  outputs=gr.outputs.Label()
@@ -32,6 +32,6 @@ mic_transcribe = gr.Interface(
32
 
33
  with demo:
34
  gr.TabbedInterface(
35
- [mic_transcribe, file_transcribe],
36
  ["Transcribe Microphone", "Transcribe Audio File"],
37
  )
 
18
 
19
  demo = gr.Blocks()
20
 
21
+ mic_classify = gr.Interface(
22
  fn=classify_audio,
23
  inputs=gr.Audio(sources="microphone", type="filepath"),
24
  outputs=gr.outputs.Label()
25
  )
26
 
27
+ file_classify = gr.Interface(
28
  fn=classify_audio,
29
  inputs=gr.Audio(sources="upload", type="filepath"),
30
  outputs=gr.outputs.Label()
 
32
 
33
  with demo:
34
  gr.TabbedInterface(
35
+ [mic_classify, file_classify],
36
  ["Transcribe Microphone", "Transcribe Audio File"],
37
  )