Spaces:
Sleeping
Sleeping
add variance value
Browse files
app.py
CHANGED
|
@@ -224,7 +224,7 @@ async def upload_image(
|
|
| 224 |
location_point = f"Point({lon:.6f} {lat:.6f})" if lat and lon else None
|
| 225 |
guid = str(uuid.uuid4())
|
| 226 |
variance_levels = ["Low", "Mid", "High"]
|
| 227 |
-
getvariancevalue = random.choice(variance_levels) if category == "
|
| 228 |
try:
|
| 229 |
validation_response = supabase.table("validation").select("location_text").execute()
|
| 230 |
approved_locations = {item['location_text'] for item in validation_response.data}
|
|
|
|
| 224 |
location_point = f"Point({lon:.6f} {lat:.6f})" if lat and lon else None
|
| 225 |
guid = str(uuid.uuid4())
|
| 226 |
variance_levels = ["Low", "Mid", "High"]
|
| 227 |
+
getvariancevalue = random.choice(variance_levels) if category == "potholes" else None
|
| 228 |
try:
|
| 229 |
validation_response = supabase.table("validation").select("location_text").execute()
|
| 230 |
approved_locations = {item['location_text'] for item in validation_response.data}
|