Spaces:
Sleeping
Sleeping
Update app/main.py
Browse files- app/main.py +0 -5
app/main.py
CHANGED
@@ -34,8 +34,3 @@ async def predict(request: Request, file: UploadFile = File(...)):
|
|
34 |
return JSONResponse({"class": predicted_class})
|
35 |
except Exception as e:
|
36 |
return JSONResponse({"error": str(e)}, status_code=400)
|
37 |
-
|
38 |
-
|
39 |
-
if __name__ == "__main__":
|
40 |
-
import uvicorn
|
41 |
-
uvicorn.run(app, host="0.0.0.0", port=7860)
|
|
|
34 |
return JSONResponse({"class": predicted_class})
|
35 |
except Exception as e:
|
36 |
return JSONResponse({"error": str(e)}, status_code=400)
|
|
|
|
|
|
|
|
|
|