Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Commit
•
c072865
1
Parent(s):
68160ae
Google Maps link (#10)
Browse files- Google Maps link (01616db40ce6efa12af3b976d2a498a26859c7fd)
Co-authored-by: Yassir Bendou <ybendou@users.noreply.huggingface.co>
app.py
CHANGED
@@ -228,7 +228,9 @@ if show_interventions:
|
|
228 |
|
229 |
for index, row in filtered_df.iterrows():
|
230 |
request_type = row['ما هي احتياجاتك؟ (أضفها إذا لم يتم ذكرها)']
|
231 |
-
|
|
|
|
|
232 |
icon_name = icon_mapping.get(request_type, 'info-sign')
|
233 |
if row["latlng"] is None:
|
234 |
continue
|
|
|
228 |
|
229 |
for index, row in filtered_df.iterrows():
|
230 |
request_type = row['ما هي احتياجاتك؟ (أضفها إذا لم يتم ذكرها)']
|
231 |
+
long_lat = row["هل يمكنك تقديم الإحداثيات الدقيقة للموقع؟ (ادا كنت لا توجد بعين المكان) متلاً \n31.01837503440344, -6.781405948842175"]
|
232 |
+
maps_url = f"https://maps.google.com/?q={long_lat}"
|
233 |
+
display_text = f'<b>Request Type:</b> {request_type}<br><b>Id:</b> {row["id"]}<br><a href="{maps_url}" target="_blank" rel="noopener noreferrer"><b>Google Maps</b></a>'
|
234 |
icon_name = icon_mapping.get(request_type, 'info-sign')
|
235 |
if row["latlng"] is None:
|
236 |
continue
|