4655401fd3
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
52 lines
1012 B
Batchfile
52 lines
1012 B
Batchfile
@echo off
|
|
chcp 65001 >nul 2>&1
|
|
title Ollama Translator GUI
|
|
echo.
|
|
echo ========================================
|
|
echo Starting Ollama Translator GUI
|
|
echo ========================================
|
|
echo.
|
|
|
|
REM Check Python
|
|
python --version >nul 2>&1
|
|
if errorlevel 1 (
|
|
echo [ERROR] Python not found!
|
|
echo Please install Python 3.8 or higher
|
|
pause
|
|
exit /b 1
|
|
)
|
|
|
|
REM Check Ollama
|
|
ollama --version >nul 2>&1
|
|
if errorlevel 1 (
|
|
echo [WARNING] Ollama not found in PATH
|
|
echo Make sure Ollama is installed
|
|
echo.
|
|
)
|
|
|
|
REM Check dependencies
|
|
python -c "import customtkinter" >nul 2>&1
|
|
if errorlevel 1 (
|
|
echo [INFO] Installing dependencies...
|
|
pip install -r requirements.txt
|
|
if errorlevel 1 (
|
|
echo [ERROR] Failed to install dependencies
|
|
pause
|
|
exit /b 1
|
|
)
|
|
)
|
|
|
|
echo [OK] All checks passed
|
|
echo [INFO] Starting application...
|
|
echo.
|
|
|
|
REM Run application
|
|
python translator_gui.py
|
|
|
|
if errorlevel 1 (
|
|
echo.
|
|
echo [ERROR] Application exited with error
|
|
pause
|
|
)
|
|
|