-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.bat
More file actions
51 lines (42 loc) Β· 1.18 KB
/
setup.bat
File metadata and controls
51 lines (42 loc) Β· 1.18 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
@echo off
echo π¨ Setting up Virtual Try-On App...
REM Check if Python is installed
python --version >nul 2>&1
if errorlevel 1 (
echo β Python is not installed. Please install Python first.
pause
exit /b 1
)
echo β
Python found
REM Check if pip is installed
pip --version >nul 2>&1
if errorlevel 1 (
echo β pip is not installed. Please install pip first.
pause
exit /b 1
)
echo β
pip found
REM Create virtual environment
echo π¦ Creating virtual environment...
python -m venv venv
REM Activate virtual environment
echo π Activating virtual environment...
call venv\Scripts\activate.bat
REM Upgrade pip
echo β¬οΈ Upgrading pip...
python -m pip install --upgrade pip
REM 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: venv\Scripts\activate.bat
echo.
echo Happy virtual try-on! β¨
pause