ttt-tkmr commited on
Commit
af16a0b
1 Parent(s): f8ad6dd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -92,10 +92,11 @@ def predict_dnn(input):
92
 
93
  def main(model, audio):
94
  if model == "DNN":
95
- return predict_dnn(audio)
 
96
  elif model == "RandomForest":
97
- return predict_rf(audio)
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,