jcjurado commited on
Commit
a06e30f
1 Parent(s): e88a836

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -289,7 +289,7 @@ def greet(uploaded_file_name):
289
  confident_pitch_values_hz = [ output2hz(p) for p in confident_pitch_outputs_y ]
290
  plt.scatter(confident_pitch_outputs_x, confident_pitch_values_hz, c="r")
291
 
292
- return fig1,fig2,fig3,fig4,fig5,uploaded_file_name
293
 
294
 
295
  #audio = gr.inputs.Audio(source="upload",type='filepath')
@@ -303,5 +303,5 @@ fig3 = gr.outputs.Plot(type="auto")
303
  fig4 = gr.outputs.Plot(type="auto")
304
  fig5 = gr.outputs.Plot(type="auto")
305
 
306
- iface = gr.Interface(fn=greet, inputs=audio, outputs=[fig1,fig2,fig3,fig4,fig5,out])
307
  iface.launch(debug=True)
 
289
  confident_pitch_values_hz = [ output2hz(p) for p in confident_pitch_outputs_y ]
290
  plt.scatter(confident_pitch_outputs_x, confident_pitch_values_hz, c="r")
291
 
292
+ return fig1,fig2,fig3,fig4,fig5
293
 
294
 
295
  #audio = gr.inputs.Audio(source="upload",type='filepath')
 
303
  fig4 = gr.outputs.Plot(type="auto")
304
  fig5 = gr.outputs.Plot(type="auto")
305
 
306
+ iface = gr.Interface(fn=greet, inputs=audio, outputs=[fig1,fig2,fig3,fig4,fig5])
307
  iface.launch(debug=True)