Spaces:
Paused
Paused
Download setup.bat from MuhammadSaad16/chatbot2: direct link, hf CLI and curl.
- Browser
- Download file 625 Bytes
-
https://huggingface.co/spaces/MuhammadSaad16/chatbot2/resolve/main/setup.bat
- Command line
-
hf download hf://spaces/MuhammadSaad16/chatbot2/setup.bat
-
curl -L -o setup.bat https://huggingface.co/spaces/MuhammadSaad16/chatbot2/resolve/main/setup.bat
625 Bytes
| @echo off | |
| setlocal | |
| REM Navigate to the backend directory | |
| cd backend | |
| REM Check if virtual environment exists, if not, create it | |
| if not exist venv ( | |
| echo Creating virtual environment... | |
| python -m venv venv | |
| ) | |
| REM Activate virtual environment | |
| echo Activating virtual environment... | |
| call venv\Scripts\activate | |
| REM Install dependencies | |
| echo Installing dependencies from requirements.txt... | |
| pip install -r requirements.txt | |
| REM Check if .env file exists, if not, create it from .env.example | |
| if not exist .env ( | |
| echo Creating .env from .env.example... | |
| copy .env.example .env | |
| ) | |
| echo Setup complete. | |
| endlocal | |
| pause |