jhauret commited on
Commit
2dc1426
·
1 Parent(s): 0f1b24c
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -57,7 +57,9 @@ def plot_stft(audio_file):
57
  fig.update_yaxes(visible=True, showgrid=False)
58
  plotly.offline.plot(fig, filename='stft.html', config={'displaylogo': False, 'modeBarButtonsToRemove': ['toImage','zoomIn', 'zoomOut','resetScale']})
59
 
60
- return 'stft.html'
 
 
61
 
62
  # Gradio interface
63
  demo = gr.Interface(fn=plot_stft,
 
57
  fig.update_yaxes(visible=True, showgrid=False)
58
  plotly.offline.plot(fig, filename='stft.html', config={'displaylogo': False, 'modeBarButtonsToRemove': ['toImage','zoomIn', 'zoomOut','resetScale']})
59
 
60
+ html_code = "<iframe data-src='stft.html' </iframe>"
61
+
62
+ return html_code
63
 
64
  # Gradio interface
65
  demo = gr.Interface(fn=plot_stft,