jethrowang commited on
Commit
6fb9356
·
verified ·
1 Parent(s): 9300764

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -173,8 +173,8 @@ with gr.Blocks() as demo:
173
  with gr.Row():
174
  with gr.Column():
175
  # Separate recording and file upload
176
- record_input = gr.Audio(sources="microphone", type="filepath", label="Record Audio")
177
- upload_input = gr.Audio(sources="upload", type="filepath", label="Upload Audio")
178
  threshold_input = gr.Slider(minimum=0, maximum=1, value=0.5, step=0.1, label="Threshold")
179
  with gr.Column():
180
  prediction_output = gr.Textbox(label="Prediction")
 
173
  with gr.Row():
174
  with gr.Column():
175
  # Separate recording and file upload
176
+ record_input = gr.Microphone(type="filepath", label="Record Audio")
177
+ upload_input = gr.Audio(type="filepath", label="Upload Audio")
178
  threshold_input = gr.Slider(minimum=0, maximum=1, value=0.5, step=0.1, label="Threshold")
179
  with gr.Column():
180
  prediction_output = gr.Textbox(label="Prediction")