Update app.py
Browse files
app.py
CHANGED
@@ -66,7 +66,10 @@ def predict(file_path):
|
|
66 |
return predicted_class_id
|
67 |
gr.Interface(
|
68 |
fn=predict,
|
69 |
-
inputs=
|
|
|
|
|
|
|
70 |
outputs="text",
|
71 |
title=title,
|
72 |
description=description,
|
|
|
66 |
return predicted_class_id
|
67 |
gr.Interface(
|
68 |
fn=predict,
|
69 |
+
inputs=[
|
70 |
+
gr.inputs.Audio(source="microphone", type="filepath", optional=True),
|
71 |
+
gr.inputs.Audio(source="upload", type="filepath", optional=True),
|
72 |
+
],
|
73 |
outputs="text",
|
74 |
title=title,
|
75 |
description=description,
|