X-Git-Url: https://git.mar77i.info/?a=blobdiff_plain;f=run_server.py;h=5da43caecf10c9fd97c668d897a0b6d41bb8f047;hb=a12839ce8fe46f0c2c0e98a37deebba05ea404b5;hp=818817d9bc8e2ec08edcffb3a483ad0560fcf45d;hpb=d23acd0d6d03d822e4505c64f71587f55e8dc2b6;p=hublib diff --git a/run_server.py b/run_server.py index 818817d..5da43ca 100755 --- a/run_server.py +++ b/run_server.py @@ -1,6 +1,8 @@ #!/usr/bin/env python3 -import uvicorn +import asyncio + +from hub.app import main if __name__ == "__main__": - uvicorn.run("hub.app:get_app", factory=True, port=5000, log_level="info") + asyncio.run(main())