Spaces:
Paused
Paused
| @echo off | |
| echo ======================================== | |
| echo Dubsway Video AI - Agentic System Setup | |
| echo ======================================== | |
| echo. | |
| REM Check if virtual environment exists | |
| if not exist "myenv31" ( | |
| echo Creating virtual environment... | |
| python -m venv myenv31 | |
| ) | |
| REM Activate virtual environment | |
| echo Activating virtual environment... | |
| call myenv31\Scripts\activate.bat | |
| REM Install dependencies | |
| echo Installing dependencies... | |
| pip install -r requirements.txt | |
| REM Install Groq specifically | |
| echo Installing Groq integration... | |
| pip install langchain-groq | |
| REM Check for Groq API key | |
| echo. | |
| echo Checking for Groq API key... | |
| if "%GROQ_API_KEY%"=="" ( | |
| echo. | |
| echo ======================================== | |
| echo GROQ API KEY REQUIRED | |
| echo ======================================== | |
| echo. | |
| echo To use the agentic system, you need a Groq API key: | |
| echo 1. Visit: https://console.groq.com/ | |
| echo 2. Sign up and get your API key | |
| echo 3. Set the environment variable: | |
| echo set GROQ_API_KEY=your_key_here | |
| echo. | |
| echo Or add it to your .env file: | |
| echo GROQ_API_KEY=your_key_here | |
| echo. | |
| pause | |
| ) else ( | |
| echo Groq API key found! | |
| ) | |
| REM Run test | |
| echo. | |
| echo Running system test... | |
| python test_agentic_system.py | |
| echo. | |
| echo ======================================== | |
| echo Setup Complete! | |
| echo ======================================== | |
| echo. | |
| echo To run the agentic system: | |
| echo 1. Make sure GROQ_API_KEY is set | |
| echo 2. Run: python -m worker.daemon | |
| echo 3. Or use: start-server.bat | |
| echo. | |
| pause |