41 lines
1.1 KiB
Batchfile
41 lines
1.1 KiB
Batchfile
@echo off
|
|
chcp 65001 >nul
|
|
echo ============================================================
|
|
echo Belegscanner - KI-Dokumentenanalyse
|
|
echo Powered by Poweron
|
|
echo ============================================================
|
|
echo.
|
|
|
|
REM Ollama starten mit CORS-Freigabe
|
|
echo [1/3] Starte Ollama mit CORS-Freigabe...
|
|
set OLLAMA_ORIGINS=*
|
|
|
|
REM Versuche Ollama zu finden
|
|
where ollama >nul 2>&1
|
|
if %errorlevel%==0 (
|
|
start /min ollama serve
|
|
echo Ollama gestartet
|
|
) else (
|
|
if exist "%LOCALAPPDATA%\Programs\Ollama\ollama.exe" (
|
|
start /min "" "%LOCALAPPDATA%\Programs\Ollama\ollama.exe" serve
|
|
echo Ollama gestartet
|
|
) else (
|
|
echo Ollama nicht gefunden - bitte manuell starten!
|
|
echo Setze OLLAMA_ORIGINS=* vor dem Start
|
|
)
|
|
)
|
|
|
|
timeout /t 2 /nobreak > nul
|
|
|
|
REM Dependencies installieren
|
|
echo [2/3] Installiere Python Dependencies...
|
|
pip install -r requirements.txt --quiet
|
|
|
|
echo [3/3] Starte Python Flask Server...
|
|
echo.
|
|
echo Server URL: http://localhost:5000
|
|
echo Druecke Ctrl+C zum Beenden
|
|
echo.
|
|
|
|
REM Flask starten
|
|
python app.py
|