hagenw commited on
Commit
0aad17a
1 Parent(s): d8eeff7

Try single input interface

Browse files
Files changed (1) hide show
  1. app.py +11 -10
app.py CHANGED
@@ -118,14 +118,14 @@ description = (
118
  )
119
  allow_flagging = "never"
120
 
121
- microphone = gr.Interface(
122
- fn=recognize,
123
- inputs=gr.Audio(sources="microphone", type="filepath"),
124
- outputs=outputs,
125
- title=title,
126
- description=description,
127
- allow_flagging=allow_flagging,
128
- )
129
 
130
  file = gr.Interface(
131
  fn=recognize,
@@ -136,6 +136,7 @@ file = gr.Interface(
136
  allow_flagging=allow_flagging,
137
  )
138
 
139
- demo = gr.TabbedInterface([microphone, file], ["Microphone", "Audio file"])
140
  # demo.queue().launch()
141
- demo.launch()
 
 
118
  )
119
  allow_flagging = "never"
120
 
121
+ # microphone = gr.Interface(
122
+ # fn=recognize,
123
+ # inputs=gr.Audio(sources="microphone", type="filepath"),
124
+ # outputs=outputs,
125
+ # title=title,
126
+ # description=description,
127
+ # allow_flagging=allow_flagging,
128
+ # )
129
 
130
  file = gr.Interface(
131
  fn=recognize,
 
136
  allow_flagging=allow_flagging,
137
  )
138
 
139
+ # demo = gr.TabbedInterface([microphone, file], ["Microphone", "Audio file"])
140
  # demo.queue().launch()
141
+ # demo.launch()
142
+ file.launch()