File size: 444 Bytes
97adb77
 
 
 
 
 
 
 
e847a22
 
 
 
 
 
 
97adb77
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Re-export from sqlsherlock_env/server/app.py for openenv validate compatibility.
# openenv expects server/app.py at the repo root.

import sys
import os

sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", "sqlsherlock_env"))

from server.app import app  # noqa: F401, E402


def main(host: str = "0.0.0.0", port: int = 7860):
    import uvicorn
    uvicorn.run(app, host=host, port=port)


if __name__ == "__main__":
    main()