File size: 245 Bytes
1773f1d
 
a7b0fd7
1773f1d
 
 
 
 
 
a7b0fd7
 
1
2
3
4
5
6
7
8
9
10
11
12
from src.server import app

def main():
    import uvicorn
    import os
    port = int(os.environ.get("PORT", 7860))
    host = os.environ.get("HOST", "0.0.0.0")
    uvicorn.run(app, host=host, port=port)

if __name__ == '__main__':
    main()