xiaopch commited on
Commit
fb19178
·
1 Parent(s): c0de0e5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -14
app.py CHANGED
@@ -169,17 +169,7 @@ with block:
169
  """
170
  )
171
  with gr.Group():
172
- with gr.Box():
173
- with gr.Row().style(mobile_collapse=False, equal_height=True):
174
- audio = gr.Audio(
175
- label="Input Audio",
176
- show_label=False,
177
- source="microphone",
178
- type="filepath"
179
- )
180
-
181
- btn = gr.Button("Transcribe")
182
- text = gr.Textbox(show_label=False, elem_id="result-textarea")
183
  with gr.Group(elem_id="share-btn-container"):
184
  community_icon = gr.HTML(community_icon_html, visible=False)
185
  loading_icon = gr.HTML(loading_icon_html, visible=False)
@@ -188,9 +178,7 @@ with block:
188
 
189
 
190
 
191
- btn.click(inference, inputs=[audio], outputs=[text, community_icon, loading_icon, share_button])
192
- share_button.click(None, [], [], _js=share_js)
193
-
194
  gr.HTML('''
195
  <div class="footer">
196
  <p>Model by <a href="https://github.com/openai/whisper" style="text-decoration: underline;" target="_blank">OpenAI</a> - Gradio Demo by 🤗 Hugging Face
 
169
  """
170
  )
171
  with gr.Group():
172
+
 
 
 
 
 
 
 
 
 
 
173
  with gr.Group(elem_id="share-btn-container"):
174
  community_icon = gr.HTML(community_icon_html, visible=False)
175
  loading_icon = gr.HTML(loading_icon_html, visible=False)
 
178
 
179
 
180
 
181
+
 
 
182
  gr.HTML('''
183
  <div class="footer">
184
  <p>Model by <a href="https://github.com/openai/whisper" style="text-decoration: underline;" target="_blank">OpenAI</a> - Gradio Demo by 🤗 Hugging Face