Spaces:
Sleeping
Sleeping
Update graph_tool.py
Browse files- graph_tool.py +1 -1
graph_tool.py
CHANGED
|
@@ -96,7 +96,7 @@ def generate_plot(data_json, labels_json, plot_type, title, x_label="", y_label=
|
|
| 96 |
alt="{title}" />
|
| 97 |
</div>
|
| 98 |
'''
|
| 99 |
-
|
| 100 |
except Exception as e:
|
| 101 |
plt.close('all') # Clean up any open figures
|
| 102 |
return f'<p style="color:red;">Error generating plot: {str(e)}</p>'
|
|
|
|
| 96 |
alt="{title}" />
|
| 97 |
</div>
|
| 98 |
'''
|
| 99 |
+
|
| 100 |
except Exception as e:
|
| 101 |
plt.close('all') # Clean up any open figures
|
| 102 |
return f'<p style="color:red;">Error generating plot: {str(e)}</p>'
|