File size: 343 Bytes
fb9822b
 
 
 
 
 
 
 
 
 
 
 
 
 
72a7241
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import os

import uvicorn

try:
    from src.pytorch_debug_env.server import app
except ModuleNotFoundError:
    from pytorch_debug_env.server import app


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


if __name__ == "__main__":
    main()