Haiss123 commited on
Commit
785b2f2
·
verified ·
1 Parent(s): efef018

Update detection_api.py

Browse files
Files changed (1) hide show
  1. detection_api.py +1 -5
detection_api.py CHANGED
@@ -759,8 +759,4 @@ async def cleanup_old_files(hours: int = 24):
759
  if __name__ == "__main__":
760
  import os
761
  port = int(os.environ.get("PORT", 7860))
762
- options = {
763
- "bind": f"0.0.0.0:{port}",
764
- "workers": 2,
765
- }
766
- StandaloneApplication(app, options).run()
 
759
  if __name__ == "__main__":
760
  import os
761
  port = int(os.environ.get("PORT", 7860))
762
+ uvicorn.run(app, host="0.0.0.0", port=port, workers=2)