-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.bat
More file actions
49 lines (44 loc) · 1.11 KB
/
Copy pathsetup.bat
File metadata and controls
49 lines (44 loc) · 1.11 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
echo ========================================
echo AI Question Testing System - Setup
echo ========================================
echo.
echo Step 1: Creating virtual environment...
python -m venv venv
if errorlevel 1 (
echo Error: Failed to create virtual environment
pause
exit /b 1
)
echo Virtual environment created successfully!
echo.
echo Step 2: Activating virtual environment...
call venv\Scripts\activate.bat
echo.
echo Step 3: Installing dependencies...
pip install -r requirements.txt
if errorlevel 1 (
echo Error: Failed to install dependencies
pause
exit /b 1
)
echo Dependencies installed successfully!
echo.
echo Step 4: Creating .env file...
if not exist .env (
copy .env.example .env
echo .env file created. Please edit it with your Hunyuan API key.
) else (
echo .env file already exists.
)
echo.
echo ========================================
echo Setup Complete!
echo ========================================
echo.
echo Next steps:
echo 1. Edit .env file and add your HUNYUAN_API_KEY
echo 2. Run: python run.py
echo 3. Open browser: http://localhost:5000
echo.
pause