d4ndelion commited on
Commit
8b031d2
1 Parent(s): e278417

Update app/main.py

Browse files
Files changed (1) hide show
  1. 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)