Spaces:
Sleeping
Sleeping
File size: 297 Bytes
91e7690 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | from __future__ import annotations
import os
import uvicorn
from env.app import app
def main() -> None:
host = os.environ.get("HOST", "0.0.0.0")
port = int(os.environ.get("PORT", "7860"))
uvicorn.run("server.app:app", host=host, port=port)
if __name__ == "__main__":
main()
|