Update app.py
Browse files
app.py
CHANGED
|
@@ -86,8 +86,8 @@ def predict(microphone,file_upload):
|
|
| 86 |
gr.Interface(
|
| 87 |
fn=predict,
|
| 88 |
inputs=[
|
| 89 |
-
gr.inputs.Audio(source="microphone", type="
|
| 90 |
-
gr.inputs.Audio(source="upload", type="
|
| 91 |
],
|
| 92 |
outputs="text",
|
| 93 |
title=title,
|
|
|
|
| 86 |
gr.Interface(
|
| 87 |
fn=predict,
|
| 88 |
inputs=[
|
| 89 |
+
gr.inputs.Audio(source="microphone", type="filepath", optional=True),
|
| 90 |
+
gr.inputs.Audio(source="upload", type="filepath", optional=True),
|
| 91 |
],
|
| 92 |
outputs="text",
|
| 93 |
title=title,
|