Update detection_api.py
Browse files- 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 |
-
|
| 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)
|
|
|
|
|
|
|
|
|
|
|
|