You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I used Gradio to create a page for monitoring an image that needs to be refreshed continuously. When I used Plotly for plotting and set the refresh rate to 10 Hz, the browser showed an "Out of Memory" error after running for less than 10 minutes.
I found that the issue is caused by the Plot.svelte file generating new CSS, which is then continuously duplicated by PlotlyPlot.svelte.
This problem can be resolved by making the following change in the Plot.svelte file:
Replace:
key+=1;lettype=value?.type;
With:
lettype=value?.type;if(type!=="plotly"){key+=1;}
In other words, if the plot type is plotly, no new CSS will be generated.
Finally, I’m new to both Svelte and TypeScript, so some of my descriptions might not be entirely accurate, but this method does resolve the issue.
Describe the bug
I used Gradio to create a page for monitoring an image that needs to be refreshed continuously. When I used Plotly for plotting and set the refresh rate to 10 Hz, the browser showed an "Out of Memory" error after running for less than 10 minutes.
I found that the issue is caused by the
Plot.svelte
file generating new CSS, which is then continuously duplicated byPlotlyPlot.svelte
.This problem can be resolved by making the following change in the
Plot.svelte
file:Replace:
With:
In other words, if the plot type is
plotly
, no new CSS will be generated.Finally, I’m new to both Svelte and TypeScript, so some of my descriptions might not be entirely accurate, but this method does resolve the issue.
Have you searched existing issues? 🔎
Reproduction
Screenshot
Logs
No response
System Info
Severity
Blocking usage of gradio
The text was updated successfully, but these errors were encountered: