Spaces:
Runtime error
Runtime error
Soham Chandratre
commited on
Commit
·
5de6376
1
Parent(s):
bfa893d
minor changes
Browse files
model/__pycache__/pothole_model.cpython-311.pyc
CHANGED
|
Binary files a/model/__pycache__/pothole_model.cpython-311.pyc and b/model/__pycache__/pothole_model.cpython-311.pyc differ
|
|
|
routes/__pycache__/route.cpython-311.pyc
CHANGED
|
Binary files a/routes/__pycache__/route.cpython-311.pyc and b/routes/__pycache__/route.cpython-311.pyc differ
|
|
|
routes/route.py
CHANGED
|
@@ -264,11 +264,7 @@ async def verify_pothole(potholeModel: PotholeModel, token: HTTPAuthorizationCre
|
|
| 264 |
# Pass image bytes to your model function
|
| 265 |
results = load_image_model(image_bytes)
|
| 266 |
|
| 267 |
-
|
| 268 |
-
# return JSONResponse(content={"response": "Pothole"})
|
| 269 |
-
# else:
|
| 270 |
-
# return JSONResponse(content={"response": "notPothole"})
|
| 271 |
-
return JSONResponse(content={"response": {results}})
|
| 272 |
except Exception as e:
|
| 273 |
return JSONResponse(content={"response": f"{e}"})
|
| 274 |
|
|
|
|
| 264 |
# Pass image bytes to your model function
|
| 265 |
results = load_image_model(image_bytes)
|
| 266 |
|
| 267 |
+
return JSONResponse(content={"response": results[2:]})
|
|
|
|
|
|
|
|
|
|
|
|
|
| 268 |
except Exception as e:
|
| 269 |
return JSONResponse(content={"response": f"{e}"})
|
| 270 |
|