Spaces:
Build error
Build error
iframe
Browse files
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 |
-
|
|
|
|
|
|
|
| 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,
|