Update app.py
Browse files
app.py
CHANGED
|
@@ -215,7 +215,7 @@ with demo:
|
|
| 215 |
with gr.Tabs():
|
| 216 |
with gr.TabItem("Upload from disk"):
|
| 217 |
uploaded_file = gr.Audio(
|
| 218 |
-
|
| 219 |
type="filepath",
|
| 220 |
label="Upload from disk",
|
| 221 |
)
|
|
@@ -232,7 +232,7 @@ with demo:
|
|
| 232 |
|
| 233 |
with gr.TabItem("Record from microphone"):
|
| 234 |
microphone = gr.Audio(
|
| 235 |
-
|
| 236 |
type="filepath",
|
| 237 |
label="Record from microphone",
|
| 238 |
)
|
|
|
|
| 215 |
with gr.Tabs():
|
| 216 |
with gr.TabItem("Upload from disk"):
|
| 217 |
uploaded_file = gr.Audio(
|
| 218 |
+
sources="upload", # Choose between "microphone", "upload"
|
| 219 |
type="filepath",
|
| 220 |
label="Upload from disk",
|
| 221 |
)
|
|
|
|
| 232 |
|
| 233 |
with gr.TabItem("Record from microphone"):
|
| 234 |
microphone = gr.Audio(
|
| 235 |
+
sources="microphone",
|
| 236 |
type="filepath",
|
| 237 |
label="Record from microphone",
|
| 238 |
)
|