rk-005's picture
Add __main__ entrypoint to server app
c467bb6
Raw History Blame Contribute Delete
188 Bytes
from __future__ import annotations
import uvicorn
from app import app
def main() -> None:
uvicorn.run("app:app", host="0.0.0.0", port=7860)
if __name__ == "__main__":
main()