Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -78,6 +78,25 @@ def draw_bounding_box_on_map(quantity, data_dict):
|
|
78 |
print(f"⚠️ Map render error: {e}")
|
79 |
return Image.open(STORE_MAP_FILE)
|
80 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
81 |
def reset_all():
|
82 |
return (
|
83 |
None, None, None, None, None, None, None,
|
|
|
78 |
print(f"⚠️ Map render error: {e}")
|
79 |
return Image.open(STORE_MAP_FILE)
|
80 |
|
81 |
+
def suggest_items(query):
|
82 |
+
query = query.lower()
|
83 |
+
if "gift" in query and "500" in query:
|
84 |
+
return (
|
85 |
+
"🎁 Gift Suggestions under ₹500:\n"
|
86 |
+
"1. Bath & Body Gift Set - ₹499\n"
|
87 |
+
"2. Mini Perfume Pack - ₹349\n"
|
88 |
+
"3. Skin Care Hamper - ₹399\n"
|
89 |
+
"4. Chocolates Gift Box - ₹299"
|
90 |
+
)
|
91 |
+
if "shampoo" in query and "dry" in query:
|
92 |
+
return (
|
93 |
+
"🧴 Shampoos for Dry Hair:\n"
|
94 |
+
"1. Dove 500 ml - ₹325\n"
|
95 |
+
"2. Clinic Plus 500 ml - ₹680"
|
96 |
+
)
|
97 |
+
return "🤷 Sorry, no smart suggestions found. Try asking: 'Gift items under 500' or 'Shampoo for dry hair'"
|
98 |
+
|
99 |
+
|
100 |
def reset_all():
|
101 |
return (
|
102 |
None, None, None, None, None, None, None,
|