Download FastAPI/start_server.bat from Sakda101/explorer-consultant-bot: direct link, hf CLI and curl.
- Browser
- Download file 621 Bytes
-
https://huggingface.co/spaces/Sakda101/explorer-consultant-bot/resolve/main/FastAPI/start_server.bat
- Command line
-
hf download hf://spaces/Sakda101/explorer-consultant-bot/FastAPI/start_server.bat
-
curl -L -o start_server.bat https://huggingface.co/spaces/Sakda101/explorer-consultant-bot/resolve/main/FastAPI/start_server.bat
621 Bytes
| @echo off | |
| setlocal | |
| cd /d "%~dp0" | |
| if not exist ".venv\Scripts\python.exe" ( | |
| echo FastAPI virtual environment was not found. | |
| echo Expected: %CD%\.venv\Scripts\python.exe | |
| echo. | |
| echo Create it first, then install requirements: | |
| echo python -m venv .venv | |
| echo .venv\Scripts\python.exe -m pip install -r requirements.txt | |
| echo .venv\Scripts\python.exe -m pip install torch --index-url https://download.pytorch.org/whl/cpu | |
| exit /b 1 | |
| ) | |
| echo Starting Explorer Consultant Bot at http://127.0.0.1:8000/login | |
| ".venv\Scripts\python.exe" -m uvicorn main:app --reload --host 127.0.0.1 --port 8000 | |