dashboarded added

This commit is contained in:
2026-01-24 13:41:52 +05:30
parent 1dceb640bd
commit 20a5d01f88
19 changed files with 513 additions and 210 deletions

10
app/utils/plot_utils.py Normal file
View File

@@ -0,0 +1,10 @@
import base64
from io import BytesIO
import matplotlib
matplotlib.use("Agg")
def plot_to_base64(plt):
img = BytesIO()
plt.savefig(img, format="png", bbox_inches="tight")
img.seek(0)
return base64.b64encode(img.read()).decode("utf-8")