Spaces:
Sleeping
Sleeping
bcsg
Browse files
app.py
CHANGED
|
@@ -68,12 +68,23 @@ add("double 18 sub",
|
|
| 68 |
add("single 18 sub", "Single-18 sub: KES 3 k / day.")
|
| 69 |
add("monitor speaker", "Monitor-speaker: KES 2 k / day.")
|
| 70 |
add("cordless mic", "Cordless-mic: KES 2 k / day.")
|
|
|
|
|
|
|
| 71 |
add("a frame tent", "A-frame tent: KES 30 k / day (100 guests).")
|
|
|
|
| 72 |
add("dome tent", "Dome tent: KES 45 k / day (200 guests).")
|
|
|
|
| 73 |
add("clear span tent", "Clear-span tent: KES 80 k / day (500 guests).")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 74 |
add("stage 8x4", "Stage 8×4: KES 15 k / day.")
|
| 75 |
add("stage 12x6", "Stage 12×6: KES 25 k / day.")
|
| 76 |
add("stage 16x8", "Stage 16×8: KES 40 k / day.")
|
|
|
|
|
|
|
| 77 |
add("dj console", "DJ console: KES 25 k / 6 hrs.")
|
| 78 |
add("mc service", "MC service: KES 15 k / event.")
|
| 79 |
add("live band", "Live band: KES 55 k / 2 sets.")
|
|
@@ -205,8 +216,8 @@ def secretary_reply(text: str) -> str:
|
|
| 205 |
if t in REPLY:
|
| 206 |
return REPLY[t]
|
| 207 |
|
| 208 |
-
# --- PARTIAL match ---
|
| 209 |
-
for k in REPLY:
|
| 210 |
if k in t:
|
| 211 |
return REPLY[k]
|
| 212 |
|
|
@@ -259,7 +270,7 @@ def health():
|
|
| 259 |
|
| 260 |
if __name__ == "__main__":
|
| 261 |
app.run(host="0.0.0.0", port=7860, threaded=True)
|
| 262 |
-
|
| 263 |
|
| 264 |
|
| 265 |
|
|
|
|
| 68 |
add("single 18 sub", "Single-18 sub: KES 3 k / day.")
|
| 69 |
add("monitor speaker", "Monitor-speaker: KES 2 k / day.")
|
| 70 |
add("cordless mic", "Cordless-mic: KES 2 k / day.")
|
| 71 |
+
|
| 72 |
+
# TENTS – singular + plural
|
| 73 |
add("a frame tent", "A-frame tent: KES 30 k / day (100 guests).")
|
| 74 |
+
add("a frame tents", "A-frame tent: KES 30 k / day (100 guests).")
|
| 75 |
add("dome tent", "Dome tent: KES 45 k / day (200 guests).")
|
| 76 |
+
add("dome tents", "Dome tent: KES 45 k / day (200 guests).")
|
| 77 |
add("clear span tent", "Clear-span tent: KES 80 k / day (500 guests).")
|
| 78 |
+
add("clear span tents", "Clear-span tent: KES 80 k / day (500 guests).")
|
| 79 |
+
add("tent", "We have A-frame, Dome, and Clear-span tents. See pricing above.")
|
| 80 |
+
add("tents", "We have A-frame, Dome, and Clear-span tents. See pricing above.")
|
| 81 |
+
|
| 82 |
+
# STAGES
|
| 83 |
add("stage 8x4", "Stage 8×4: KES 15 k / day.")
|
| 84 |
add("stage 12x6", "Stage 12×6: KES 25 k / day.")
|
| 85 |
add("stage 16x8", "Stage 16×8: KES 40 k / day.")
|
| 86 |
+
|
| 87 |
+
# OTHER GEAR
|
| 88 |
add("dj console", "DJ console: KES 25 k / 6 hrs.")
|
| 89 |
add("mc service", "MC service: KES 15 k / event.")
|
| 90 |
add("live band", "Live band: KES 55 k / 2 sets.")
|
|
|
|
| 216 |
if t in REPLY:
|
| 217 |
return REPLY[t]
|
| 218 |
|
| 219 |
+
# --- PARTIAL match (longest first) ---
|
| 220 |
+
for k in sorted(REPLY.keys(), key=len, reverse=True):
|
| 221 |
if k in t:
|
| 222 |
return REPLY[k]
|
| 223 |
|
|
|
|
| 270 |
|
| 271 |
if __name__ == "__main__":
|
| 272 |
app.run(host="0.0.0.0", port=7860, threaded=True)
|
| 273 |
+
|
| 274 |
|
| 275 |
|
| 276 |
|