datasciencesage commited on
Commit
1079f94
·
verified ·
1 Parent(s): 5549644

Update app/main.py

Browse files
Files changed (1) hide show
  1. app/main.py +3 -8
app/main.py CHANGED
@@ -296,15 +296,10 @@ async def list_policies():
296
 
297
  if __name__ == "__main__":
298
  import uvicorn
299
-
300
- # Get port from environment (Hugging Face uses 7860)
301
- port = int(os.getenv("PORT", 8000))
302
- host = os.getenv("HOST", "0.0.0.0")
303
-
304
  uvicorn.run(
305
  "app.main:app",
306
- host=host,
307
- port=port,
308
- reload=False, # IMPORTANT: False for production
309
  log_level="info"
310
  )
 
296
 
297
  if __name__ == "__main__":
298
  import uvicorn
 
 
 
 
 
299
  uvicorn.run(
300
  "app.main:app",
301
+ host="127.0.0.1",
302
+ port=8000,
303
+ reload=True,
304
  log_level="info"
305
  )