Spaces:
Sleeping
Sleeping
Download server/__init__.py from NamanTiwari/AppSec-Agent: direct link, hf CLI and curl.
- Browser
- Download file 380 Bytes
-
https://huggingface.co/spaces/NamanTiwari/AppSec-Agent/resolve/main/server/__init__.py
- Command line
-
hf download hf://spaces/NamanTiwari/AppSec-Agent/server/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/NamanTiwari/AppSec-Agent/resolve/main/server/__init__.py
380 Bytes
| # Server package for OpenEnv AI AppSec Code Reviewer | |
| # | |
| # Ensures the project root is on sys.path so that `from models import ...` | |
| # works regardless of how the server is started (uvicorn, uv run, Docker, etc.) | |
| import sys | |
| from pathlib import Path | |
| _PROJECT_ROOT = str(Path(__file__).resolve().parent.parent) | |
| if _PROJECT_ROOT not in sys.path: | |
| sys.path.insert(0, _PROJECT_ROOT) | |