Update app.py
Browse files
app.py
CHANGED
@@ -70,8 +70,8 @@ def predict(file_path):
|
|
70 |
gr.Interface(
|
71 |
fn=predict,
|
72 |
inputs=[
|
73 |
-
gr.inputs.Audio(source="microphone", type="
|
74 |
-
gr.inputs.Audio(source="upload", type="
|
75 |
],
|
76 |
outputs="text",
|
77 |
title=title,
|
|
|
70 |
gr.Interface(
|
71 |
fn=predict,
|
72 |
inputs=[
|
73 |
+
gr.inputs.Audio(source="microphone", type="filepath", optional=True),
|
74 |
+
gr.inputs.Audio(source="upload", type="filepath", optional=True),
|
75 |
],
|
76 |
outputs="text",
|
77 |
title=title,
|