yuekai commited on
Commit
27de051
1 Parent(s): 6168375

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -332,7 +332,7 @@ with demo:
332
  with gr.Tabs():
333
  with gr.TabItem("Upload from disk"):
334
  uploaded_file = gr.Audio(
335
- source="upload", # Choose between "microphone", "upload"
336
  type="filepath",
337
  optional=False,
338
  label="Upload from disk",
@@ -357,7 +357,7 @@ with demo:
357
 
358
  with gr.TabItem("Record from microphone"):
359
  microphone = gr.Audio(
360
- source="microphone", # Choose between "microphone", "upload"
361
  type="filepath",
362
  optional=False,
363
  label="Record from microphone",
 
332
  with gr.Tabs():
333
  with gr.TabItem("Upload from disk"):
334
  uploaded_file = gr.Audio(
335
+ sources=["upload"],
336
  type="filepath",
337
  optional=False,
338
  label="Upload from disk",
 
357
 
358
  with gr.TabItem("Record from microphone"):
359
  microphone = gr.Audio(
360
+ sources=["microphone"], # Choose between "microphone", "upload"
361
  type="filepath",
362
  optional=False,
363
  label="Record from microphone",