Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -92,10 +92,11 @@ def predict_dnn(input):
|
|
92 |
|
93 |
def main(model, audio):
|
94 |
if model == "DNN":
|
95 |
-
|
|
|
96 |
elif model == "RandomForest":
|
97 |
-
|
98 |
-
|
99 |
|
100 |
iface = gr.Interface(
|
101 |
fn = main,
|
|
|
92 |
|
93 |
def main(model, audio):
|
94 |
if model == "DNN":
|
95 |
+
predict = predict_dnn(audio)
|
96 |
+
|
97 |
elif model == "RandomForest":
|
98 |
+
predict = predict_rf(audio)
|
99 |
+
return predict
|
100 |
|
101 |
iface = gr.Interface(
|
102 |
fn = main,
|