Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -23,7 +23,7 @@ if selected_representative:
|
|
23 |
st.write('**زیرمجموعههای مزرعه انتخاب شده:**', sub_farms)
|
24 |
|
25 |
# استخراج مختصات مزرعه نماینده
|
26 |
-
rep_coords = df_coordinates[df_coordinates['مزرعه'] == selected_representative][['عرض جغرافیایی', 'طول جغرافیایی]].values
|
27 |
if len(rep_coords) > 0:
|
28 |
rep_lat, rep_lon = rep_coords[0]
|
29 |
else:
|
|
|
23 |
st.write('**زیرمجموعههای مزرعه انتخاب شده:**', sub_farms)
|
24 |
|
25 |
# استخراج مختصات مزرعه نماینده
|
26 |
+
rep_coords = df_coordinates[df_coordinates['مزرعه'] == selected_representative][['عرض جغرافیایی', 'طول جغرافیایی']].values
|
27 |
if len(rep_coords) > 0:
|
28 |
rep_lat, rep_lon = rep_coords[0]
|
29 |
else:
|