Spaces:
Sleeping
Sleeping
Download server/app.py from exploring-solver/deprec: direct link, hf CLI and curl.
- Browser
- Download file 386 Bytes
-
https://huggingface.co/spaces/exploring-solver/deprec/resolve/main/server/app.py
- Command line
-
hf download hf://spaces/exploring-solver/deprec/server/app.py
-
curl -L -o app.py https://huggingface.co/spaces/exploring-solver/deprec/resolve/main/server/app.py
386 Bytes
| """Compatibility shim for validators expecting server/app.py.""" | |
| from __future__ import annotations | |
| import os | |
| import sys | |
| from pathlib import Path | |
| ROOT = Path(__file__).resolve().parents[1] | |
| if str(ROOT) not in sys.path: | |
| sys.path.insert(0, str(ROOT)) | |
| from app import app, run_server # noqa: E402,F401 | |
| def main() -> None: | |
| run_server() | |
| if __name__ == "__main__": | |
| main() | |