csukuangfj
commited on
Commit
•
70e1861
1
Parent(s):
6a56bca
fix gr.Audio
Browse files
app.py
CHANGED
@@ -207,7 +207,6 @@ with demo:
|
|
207 |
uploaded_file = gr.Audio(
|
208 |
sources=["upload"], # Choose between "microphone", "upload"
|
209 |
type="filepath",
|
210 |
-
optional=False,
|
211 |
label="Upload from disk",
|
212 |
)
|
213 |
upload_button = gr.Button("Submit for recognition")
|
@@ -218,7 +217,6 @@ with demo:
|
|
218 |
microphone = gr.Audio(
|
219 |
sources=["microphone"], # Choose between "microphone", "upload"
|
220 |
type="filepath",
|
221 |
-
optional=False,
|
222 |
label="Record from microphone",
|
223 |
)
|
224 |
|
|
|
207 |
uploaded_file = gr.Audio(
|
208 |
sources=["upload"], # Choose between "microphone", "upload"
|
209 |
type="filepath",
|
|
|
210 |
label="Upload from disk",
|
211 |
)
|
212 |
upload_button = gr.Button("Submit for recognition")
|
|
|
217 |
microphone = gr.Audio(
|
218 |
sources=["microphone"], # Choose between "microphone", "upload"
|
219 |
type="filepath",
|
|
|
220 |
label="Record from microphone",
|
221 |
)
|
222 |
|