-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathsetup.bat
More file actions
47 lines (39 loc) · 1.17 KB
/
setup.bat
File metadata and controls
47 lines (39 loc) · 1.17 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
@echo off
echo 🚀 Setting up Video Transcription with AI Persona...
REM Check Python version
python --version >nul 2>&1
if %errorlevel% neq 0 (
echo ❌ Python 3 is required but not found. Please install Python 3.11 or higher.
exit /b 1
)
REM Check FFmpeg
ffmpeg -version >nul 2>&1
if %errorlevel% neq 0 (
echo ❌ FFmpeg is required but not found.
echo Please install FFmpeg from https://ffmpeg.org/download.html
exit /b 1
)
REM Check Ollama
ollama -v >nul 2>&1
if %errorlevel% neq 0 (
echo ❌ Ollama is required but not found.
echo Please install Ollama from https://ollama.ai
exit /b 1
)
REM Create virtual environment if it doesn't exist
if not exist "venv" (
echo Creating virtual environment...
python -m venv venv
)
REM Activate virtual environment
call venv\Scripts\activate.bat
REM Upgrade pip
echo Upgrading pip...
python -m pip install --upgrade pip
REM Install requirements
echo Installing requirements...
pip install -r requirements.txt
echo ✨ Setup complete! To start the application:
echo 1. Start Ollama server: ollama serve
echo 2. Pull a model (if not done): ollama pull mistral:instruct
echo 3. Run the app: streamlit run main.py