-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
Β·48 lines (38 loc) Β· 1.2 KB
/
setup.sh
File metadata and controls
executable file
Β·48 lines (38 loc) Β· 1.2 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
#!/bin/bash
# Virtual Try-On App Setup Script
echo "π¨ Setting up Virtual Try-On App..."
# Check if Python is installed
if ! command -v python3 &> /dev/null; then
echo "β Python 3 is not installed. Please install Python 3 first."
exit 1
fi
echo "β
Python 3 found"
# Check if pip is installed
if ! command -v pip3 &> /dev/null; then
echo "β pip3 is not installed. Please install pip3 first."
exit 1
fi
echo "β
pip3 found"
# Create virtual environment
echo "π¦ Creating virtual environment..."
python3 -m venv venv
# Activate virtual environment
echo "π Activating virtual environment..."
source venv/bin/activate
# Upgrade pip
echo "β¬οΈ Upgrading pip..."
pip install --upgrade pip
# Install requirements
echo "π Installing dependencies..."
pip install -r requirements.txt
echo ""
echo "π Setup complete!"
echo ""
echo "Next steps:"
echo "1. Get your Gemini API key from: https://makersuite.google.com/app/apikey"
echo "2. Edit the .env file and replace 'your_gemini_api_key_here' with your actual API key"
echo "3. Run the app with: streamlit run app.py"
echo ""
echo "To activate the virtual environment later, run: source venv/bin/activate"
echo ""
echo "Happy virtual try-on! β¨"