Update app.py
Browse files
app.py
CHANGED
|
@@ -227,23 +227,23 @@ def format_response(text):
|
|
| 227 |
cards_created = 0
|
| 228 |
|
| 229 |
if sections['multi_route'].strip():
|
| 230 |
-
html += create_card("Multi-Destination Route Plan", sections['multi_route'], "#
|
| 231 |
cards_created += 1
|
| 232 |
|
| 233 |
if sections['route'].strip():
|
| 234 |
-
html += create_card("Route Information", sections['route'], "#
|
| 235 |
cards_created += 1
|
| 236 |
|
| 237 |
if sections['traffic'].strip():
|
| 238 |
-
html += create_card("Traffic Analysis", sections['traffic'], "#
|
| 239 |
cards_created += 1
|
| 240 |
|
| 241 |
if sections['weather'].strip():
|
| 242 |
-
html += create_card("Weather Conditions", sections['weather'], "#
|
| 243 |
cards_created += 1
|
| 244 |
|
| 245 |
if sections['cost'].strip():
|
| 246 |
-
html += create_card("Cost Estimate", sections['cost'], "#
|
| 247 |
cards_created += 1
|
| 248 |
|
| 249 |
if cards_created == 0:
|
|
|
|
| 227 |
cards_created = 0
|
| 228 |
|
| 229 |
if sections['multi_route'].strip():
|
| 230 |
+
html += create_card("Multi-Destination Route Plan", sections['multi_route'], "#F5F5F5", "multi_route")
|
| 231 |
cards_created += 1
|
| 232 |
|
| 233 |
if sections['route'].strip():
|
| 234 |
+
html += create_card("Route Information", sections['route'], "#F5F5F5", "route")
|
| 235 |
cards_created += 1
|
| 236 |
|
| 237 |
if sections['traffic'].strip():
|
| 238 |
+
html += create_card("Traffic Analysis", sections['traffic'], "#F5F5F5", "traffic")
|
| 239 |
cards_created += 1
|
| 240 |
|
| 241 |
if sections['weather'].strip():
|
| 242 |
+
html += create_card("Weather Conditions", sections['weather'], "#F5F5F5", "weather")
|
| 243 |
cards_created += 1
|
| 244 |
|
| 245 |
if sections['cost'].strip():
|
| 246 |
+
html += create_card("Cost Estimate", sections['cost'], "#F5F5F5", "cost")
|
| 247 |
cards_created += 1
|
| 248 |
|
| 249 |
if cards_created == 0:
|