Spaces:
Sleeping
Sleeping
print long and lan
Browse files
app.py
CHANGED
|
@@ -238,7 +238,7 @@ async def upload_image(
|
|
| 238 |
"image_name": file.filename,
|
| 239 |
"image_url": url,
|
| 240 |
"location": location_point,
|
| 241 |
-
"location_text": f"{lon:.6f} {lat:.6f}",
|
| 242 |
"status": "In Progress",
|
| 243 |
"category": category,
|
| 244 |
"approved": is_approved,
|
|
|
|
| 238 |
"image_name": file.filename,
|
| 239 |
"image_url": url,
|
| 240 |
"location": location_point,
|
| 241 |
+
"location_text": f"{lon:.6f} {lat:.6f}" if lat and lon else location or None,
|
| 242 |
"status": "In Progress",
|
| 243 |
"category": category,
|
| 244 |
"approved": is_approved,
|