File size: 303 Bytes
fb9822b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | 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)
|