Spaces:
Runtime error
Runtime error
edited
Browse files
app.py
CHANGED
|
@@ -146,8 +146,8 @@ def cleanup_images(directory: str):
|
|
| 146 |
# return JSONResponse(content={"items": predictions})
|
| 147 |
|
| 148 |
|
| 149 |
-
except Exception as e:
|
| 150 |
-
|
| 151 |
|
| 152 |
# code to accept the localhost to get images from
|
| 153 |
app.add_middleware(
|
|
|
|
| 146 |
# return JSONResponse(content={"items": predictions})
|
| 147 |
|
| 148 |
|
| 149 |
+
# except Exception as e:
|
| 150 |
+
# return JSONResponse(content={"error": str(e)}, status_code=500)
|
| 151 |
|
| 152 |
# code to accept the localhost to get images from
|
| 153 |
app.add_middleware(
|