Spaces:
Sleeping
Sleeping
Download server/app.py from Developer-Amar/socratic-env: direct link, hf CLI and curl.
- Browser
- Download file 238 Bytes
-
https://huggingface.co/spaces/Developer-Amar/socratic-env/resolve/main/server/app.py
- Command line
-
hf download hf://spaces/Developer-Amar/socratic-env/server/app.py
-
curl -L -o app.py https://huggingface.co/spaces/Developer-Amar/socratic-env/resolve/main/server/app.py
238 Bytes
| import os | |
| import sys | |
| import uvicorn | |
| sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) | |
| from main import app | |
| def main(): | |
| uvicorn.run(app, host="0.0.0.0", port=7860) | |
| if __name__ == "__main__": | |
| main() | |