Update app.py
Browse files
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
|
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
|
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)
|