Spaces:
Sleeping
Sleeping
File size: 368 Bytes
62c5bbf | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | """Validator-friendly server entrypoint for SupportEnv."""
from __future__ import annotations
import os
import uvicorn
def main() -> None:
"""Launch the FastAPI app on the Hugging Face expected host/port."""
port = int(os.environ.get("PORT", "7860"))
uvicorn.run("app:app", host="0.0.0.0", port=port, workers=1)
if __name__ == "__main__":
main()
|