-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.bat
More file actions
49 lines (41 loc) · 1.74 KB
/
setup.bat
File metadata and controls
49 lines (41 loc) · 1.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
@echo off
:: ─────────────────────────────────────────────────────────────────────────────
:: ResolvaBot LLM — Setup Script (Windows)
:: Usage: Double-click setup.bat OR run in Command Prompt
:: ─────────────────────────────────────────────────────────────────────────────
echo ========================================
echo ResolvaBot LLM -- Setup (Windows)
echo ========================================
:: 1. Create virtual environment
if not exist "venv" (
echo Creating virtual environment...
python -m venv venv
)
call venv\Scripts\activate.bat
echo Virtual environment activated.
:: 2. Upgrade pip
python -m pip install --upgrade pip --quiet
:: 3. Install dependencies
echo Installing dependencies (this may take a few minutes)...
pip install -r requirements.txt
:: 4. Download NLTK data
python -c "import nltk; [nltk.download(p, quiet=True) for p in ['punkt','punkt_tab','wordnet','omw-1.4']]; print('NLTK data ready.')"
:: 5. Create .env if missing
if not exist ".env" (
copy .env.example .env
echo.
echo WARNING: .env created from .env.example
echo Open .env and add your OPENAI_API_KEY before running.
) else (
echo .env already exists.
)
echo.
echo ========================================
echo Setup complete!
echo ========================================
echo.
echo Next steps:
echo 1. Open .env and set OPENAI_API_KEY=sk-...
echo 2. Run: venv\Scripts\activate.bat ^&^& streamlit run app.py
echo.
pause