Mohamed41 commited on
Commit
8b108ed
1 Parent(s): 28fe9f9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -79,7 +79,7 @@ def prediction(path1):
79
  return y_pred[0][0]
80
  def mainfunc(data):
81
  print(data)
82
- return prediction(data)
83
  audio_input = gr.inputs.Audio(type="filepath")
84
  iface = gr.Interface(fn=mainfunc, inputs=audio_input, outputs="text")
85
  iface.launch(inline=False)
 
79
  return y_pred[0][0]
80
  def mainfunc(data):
81
  print(data)
82
+ return str(data)
83
  audio_input = gr.inputs.Audio(type="filepath")
84
  iface = gr.Interface(fn=mainfunc, inputs=audio_input, outputs="text")
85
  iface.launch(inline=False)