Idhammz commited on
Commit
c23447b
·
verified ·
1 Parent(s): 955c017

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -89,5 +89,5 @@ async def predict(image_data: ImageData):
89
  print(f"EXCEPTION in Predict POST: {e}")
90
  return {'message': str(e), 'nama': '', 'probability': ''}
91
 
92
- # if __name__ == "__main__":
93
- # uvicorn.run(app, host="0.0.0.0", port=8000)
 
89
  print(f"EXCEPTION in Predict POST: {e}")
90
  return {'message': str(e), 'nama': '', 'probability': ''}
91
 
92
+ if __name__ == "__main__":
93
+ uvicorn.run(app, host="0.0.0.0", port=7860)