csukuangfj commited on
Commit
6a56bca
·
1 Parent(s): 1e2c19d

fix gr.Audio

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -205,7 +205,7 @@ with demo:
205
  with gr.Tabs():
206
  with gr.TabItem("Upload from disk"):
207
  uploaded_file = gr.Audio(
208
- source="upload", # Choose between "microphone", "upload"
209
  type="filepath",
210
  optional=False,
211
  label="Upload from disk",
@@ -216,7 +216,7 @@ with demo:
216
 
217
  with gr.TabItem("Record from microphone"):
218
  microphone = gr.Audio(
219
- source="microphone", # Choose between "microphone", "upload"
220
  type="filepath",
221
  optional=False,
222
  label="Record from microphone",
 
205
  with gr.Tabs():
206
  with gr.TabItem("Upload from disk"):
207
  uploaded_file = gr.Audio(
208
+ sources=["upload"], # Choose between "microphone", "upload"
209
  type="filepath",
210
  optional=False,
211
  label="Upload from disk",
 
216
 
217
  with gr.TabItem("Record from microphone"):
218
  microphone = gr.Audio(
219
+ sources=["microphone"], # Choose between "microphone", "upload"
220
  type="filepath",
221
  optional=False,
222
  label="Record from microphone",