Hev832 commited on
Commit
a3ec665
·
verified ·
1 Parent(s): 46aaf47

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -295,14 +295,15 @@ with gr.Blocks(theme="ParityError/Interstellar") as app:
295
 
296
  with gr.Row():
297
  with gr.Tabs():
298
- with gr.TabItem("2.Choose an audio file:"):
299
  recorder = gr.Microphone(label="Record audio here...",type='filepath')
 
300
  audio_picker = gr.Dropdown(label="",choices=show_available('audios'),value='',interactive=True)
301
  try:
302
  recorder.stop_recording(upload_file, inputs=[recorder],outputs=[audio_picker])
303
  except:
304
  recorder.upload(upload_file, inputs=[recorder],outputs=[audio_picker])
305
- with gr.TabItem("(Or upload a new file here)"):
306
  try:
307
  dropbox = gr.File(label="Drop an audio here.",file_types=['.wav', '.mp3', '.ogg', '.flac', '.aac'], type="filepath")
308
  except:#Version Compatibiliy
 
295
 
296
  with gr.Row():
297
  with gr.Tabs():
298
+ with gr.TabItem("record audio:"):
299
  recorder = gr.Microphone(label="Record audio here...",type='filepath')
300
+ with gr.TabItem("Choose an audio file:"):
301
  audio_picker = gr.Dropdown(label="",choices=show_available('audios'),value='',interactive=True)
302
  try:
303
  recorder.stop_recording(upload_file, inputs=[recorder],outputs=[audio_picker])
304
  except:
305
  recorder.upload(upload_file, inputs=[recorder],outputs=[audio_picker])
306
+ with gr.TabItem("Or upload a new file here"):
307
  try:
308
  dropbox = gr.File(label="Drop an audio here.",file_types=['.wav', '.mp3', '.ogg', '.flac', '.aac'], type="filepath")
309
  except:#Version Compatibiliy