-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
47 lines (41 loc) · 1.14 KB
/
Copy pathsetup.sh
File metadata and controls
47 lines (41 loc) · 1.14 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
#!/bin/bash
echo "========================================"
echo "AI Question Testing System - Setup"
echo "========================================"
echo ""
echo "Step 1: Creating virtual environment..."
python3 -m venv venv
if [ $? -ne 0 ]; then
echo "Error: Failed to create virtual environment"
exit 1
fi
echo "Virtual environment created successfully!"
echo ""
echo "Step 2: Activating virtual environment..."
source venv/bin/activate
echo ""
echo "Step 3: Installing dependencies..."
pip install -r requirements.txt
if [ $? -ne 0 ]; then
echo "Error: Failed to install dependencies"
exit 1
fi
echo "Dependencies installed successfully!"
echo ""
echo "Step 4: Creating .env file..."
if [ ! -f .env ]; then
cp .env.example .env
echo ".env file created. Please edit it with your Hunyuan API key."
else
echo ".env file already exists."
fi
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 ""