Update app.py
Browse files
app.py
CHANGED
|
@@ -166,7 +166,7 @@ def get_dashboard():
|
|
| 166 |
conn
|
| 167 |
)
|
| 168 |
|
| 169 |
-
fig, axs = plt.subplots(2, 2, figsize=(
|
| 170 |
|
| 171 |
if df.empty:
|
| 172 |
|
|
@@ -397,7 +397,8 @@ def process_image(img):
|
|
| 397 |
f"Discount : ₹{discount}\n\n"
|
| 398 |
)
|
| 399 |
|
| 400 |
-
|
|
|
|
| 401 |
|
| 402 |
return (
|
| 403 |
image,
|
|
|
|
| 166 |
conn
|
| 167 |
)
|
| 168 |
|
| 169 |
+
fig, axs = plt.subplots(2, 2, figsize=(8, 6))
|
| 170 |
|
| 171 |
if df.empty:
|
| 172 |
|
|
|
|
| 397 |
f"Discount : ₹{discount}\n\n"
|
| 398 |
)
|
| 399 |
|
| 400 |
+
conn.commit()
|
| 401 |
+
dashboard = get_dashboard()
|
| 402 |
|
| 403 |
return (
|
| 404 |
image,
|