Spaces:
Runtime error
Runtime error
csukuangfj
commited on
Commit
•
f912166
1
Parent(s):
d1854c8
fix errors
Browse files
app.py
CHANGED
@@ -177,9 +177,8 @@ with demo:
|
|
177 |
with gr.Tabs():
|
178 |
with gr.TabItem("Upload from disk"):
|
179 |
uploaded_file = gr.Audio(
|
180 |
-
|
181 |
type="filepath",
|
182 |
-
optional=False,
|
183 |
label="Upload from disk",
|
184 |
)
|
185 |
upload_button = gr.Button("Submit for separation")
|
@@ -197,9 +196,8 @@ with demo:
|
|
197 |
|
198 |
with gr.TabItem("Record from microphone"):
|
199 |
microphone = gr.Audio(
|
200 |
-
|
201 |
type="filepath",
|
202 |
-
optional=False,
|
203 |
label="Record from microphone",
|
204 |
)
|
205 |
|
|
|
177 |
with gr.Tabs():
|
178 |
with gr.TabItem("Upload from disk"):
|
179 |
uploaded_file = gr.Audio(
|
180 |
+
sources=["upload"], # Choose between "microphone", "upload"
|
181 |
type="filepath",
|
|
|
182 |
label="Upload from disk",
|
183 |
)
|
184 |
upload_button = gr.Button("Submit for separation")
|
|
|
196 |
|
197 |
with gr.TabItem("Record from microphone"):
|
198 |
microphone = gr.Audio(
|
199 |
+
sources=["microphone"], # Choose between "microphone", "upload"
|
200 |
type="filepath",
|
|
|
201 |
label="Record from microphone",
|
202 |
)
|
203 |
|