-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.bat
More file actions
59 lines (50 loc) · 1.37 KB
/
Copy pathsetup.bat
File metadata and controls
59 lines (50 loc) · 1.37 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
50
51
52
53
54
55
56
57
58
59
@echo off
REM setup.bat - Setup script for Windows
echo.
echo 🦁 WildGuard AI - Setup Script (Windows)
echo ========================================
echo.
REM Check Python
echo ✓ Checking Python...
python --version
REM Create virtual environment
echo ✓ Creating virtual environment...
python -m venv venv
call venv\Scripts\activate.bat
REM Install dependencies
echo ✓ Installing Python dependencies...
python -m pip install --upgrade pip
pip install -r requirements.txt
REM Copy environment file
echo ✓ Setting up environment...
if not exist .env (
copy .env.example .env
echo Created .env file (edit it for custom config)
)
REM Initialize database
echo ✓ Initializing database...
python -c "from business_logic import init_db; db = init_db(); print(' Database initialized successfully')"
REM Setup frontend
echo ✓ Setting up frontend...
cd frontend
npm install
cd ..
REM Verify model files
echo ✓ Verifying model files...
for %%F in (animal_classifier.h5 class_indices.json risk_dictionary.json) do (
if exist %%F (
echo ✓ %%F
) else (
echo ✗ %%F NOT FOUND
)
)
REM Print next steps
echo.
echo 🎉 Setup complete!
echo.
echo Next steps:
echo 1. Start backend: python api.py
echo 2. Start frontend: cd frontend ^&^& npm run dev
echo 3. Open browser: http://localhost:5173
echo.
echo For more info, see README.md or DEPLOYMENT.md