-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.bat
More file actions
37 lines (32 loc) · 871 Bytes
/
start.bat
File metadata and controls
37 lines (32 loc) · 871 Bytes
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
@echo off
SETLOCAL
:: Check if Python is installed
python --version >nul 2>&1
IF %ERRORLEVEL% NEQ 0 (
echo Python is not installed. Please install Python and try again.
pause
exit /b
)
:: Install requirements
echo Installing required Python packages...
pip install -r requirements.txt
IF %ERRORLEVEL% NEQ 0 (
echo Failed to install Python packages. Please check your Python and pip setup.
pause
exit /b
)
:: Check if ollama is installed
echo Checking if Ollama is installed...
ollama --version >nul 2>&1
IF %ERRORLEVEL% NEQ 0 (
echo Ollama is not installed.
echo Redirecting you to the Ollama installation page...
start https://ollama.com/download
pause
exit /b
)
:: Start the Flask application
echo Starting Flask application...
start http://127.0.0.1:5000
python justaui.py
ENDLOCAL