Spaces:
Runtime error
Runtime error
Download start_server.bat from rb1337/Phishing-Detection-System: direct link, hf CLI and curl.
- Browser
- Download file 1.04 kB
-
https://huggingface.co/spaces/rb1337/Phishing-Detection-System/resolve/main/start_server.bat
- Command line
-
hf download hf://spaces/rb1337/Phishing-Detection-System/start_server.bat
-
curl -L -o start_server.bat https://huggingface.co/spaces/rb1337/Phishing-Detection-System/resolve/main/start_server.bat
1.04 kB
| @echo off | |
| REM Phishing Detection Server Startup Script | |
| REM Starts the FastAPI server for phishing detection | |
| echo ============================================ | |
| echo Phishing Detection Server | |
| echo ============================================ | |
| echo. | |
| REM Check if virtual environment exists | |
| if not exist "venv\" ( | |
| echo ERROR: Virtual environment not found! | |
| echo Please run: python -m venv venv | |
| pause | |
| exit /b 1 | |
| ) | |
| REM Activate virtual environment | |
| echo [1/3] Activating virtual environment... | |
| call venv\Scripts\activate.bat | |
| REM Install server dependencies if needed | |
| echo [2/3] Checking dependencies... | |
| pip install -q -r requirements.txt | |
| REM Start the server | |
| echo [3/3] Starting server... | |
| echo. | |
| echo ============================================ | |
| echo Server running at: http://localhost:8000 | |
| echo API Docs: http://localhost:8000/docs | |
| echo Press Ctrl+C to stop | |
| echo ============================================ | |
| echo. | |
| cd server | |
| python -m uvicorn app:app --host 0.0.0.0 --port 8000 --reload |