Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
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 |
-
|
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",
|