-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.bat
More file actions
45 lines (38 loc) · 1.21 KB
/
Copy pathstart.bat
File metadata and controls
45 lines (38 loc) · 1.21 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
@echo off
echo ========================================
echo N8N Workflow Generator - Easy Setup
echo ========================================
echo.
REM Check if Python is installed
python --version >nul 2>&1
if errorlevel 1 (
echo ERROR: Python is not installed!
echo.
echo Please install Python from: https://www.python.org/downloads/
echo Make sure to check "Add Python to PATH" during installation
pause
exit /b 1
)
echo [1/4] Installing Python packages...
pip install -r requirements.txt
echo.
echo [2/4] Checking configuration...
if not exist .env (
echo No .env file found. Creating a default one for LOCAL_INFER_URL.
echo LOCAL_INFER_URL=http://127.0.0.1:8000/generate> .env
)
echo.
echo [3/4] Ensure your local LLM server is running at %LOCAL_INFER_URL% (from .env)
echo Example server endpoint: http://127.0.0.1:8000/generate
echo If not running, start your local model server first.
echo [4/4] Starting the API server...
echo.
echo ========================================
echo Server will start at: http://localhost:5000
echo Open this URL in your browser
echo ========================================
echo.
echo Press Ctrl+C to stop the server
echo.
python app.py
pause