diff --git a/.gitignore b/.gitignore index 23bfdd2..5a2675b 100644 --- a/.gitignore +++ b/.gitignore @@ -9,6 +9,8 @@ test_agent.py config.ini .voices/ experimental/ +.screenshots/*.png +.screenshots/*.jpg conversations/ agentic_env/* .env diff --git a/requirements.txt b/requirements.txt index fb4ef01..715523f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,6 @@ fastapi>=0.115.12 -celery==5.5.1 +flask>=3.1.0 +celery>=5.5.1 aiofiles>=24.1.0 uvicorn>=0.34.0 pydantic>=2.10.6 @@ -34,14 +35,13 @@ httpx>=0.27,<0.29 anyio>=3.5.0,<5 distro>=1.7.0,<2 jiter>=0.4.0,<1 -sniffio -tqdm>4 fake_useragent>=2.1.0 selenium_stealth>=1.0.6 undetected-chromedriver>=3.5.5 sentencepiece>=0.2.0 -# for api provider openai +sniffio +tqdm>4 # if use chinese ordered_set pypinyin diff --git a/setup.py b/setup.py index 50ced18..254f02e 100644 --- a/setup.py +++ b/setup.py @@ -15,8 +15,16 @@ setup( packages=find_packages(), include_package_data=True, install_requires=[ + "fastapi>=0.115.12", + "celery>=5.5.1", + "uvicorn>=0.34.0", + "flask>=3.1.0", + "aiofiles>=24.1.0", + "pydantic>=2.10.6", + "pydantic_core>=2.27.2", "requests>=2.31.0", - "openai", + "sacremoses>=0.0.53", + "numpy>=1.24.4", "colorama>=0.4.6", "python-dotenv>=1.0.0", "playsound>=1.3.0", @@ -26,7 +34,6 @@ setup( "ollama>=0.4.7", "scipy>=1.9.3", "kokoro>=0.7.12", - "flask>=3.1.0", "protobuf>=3.20.3", "termcolor>=2.5.0", "ipython>=8.34.0", @@ -35,8 +42,9 @@ setup( "markdownify>=1.1.0", "text2emotion>=0.0.5", "python-dotenv>=1.0.0", - "langid>=1.1.6", "adaptive-classifier>=0.0.10", + "langid>=1.1.6", + "chromedriver-autoinstaller>=0.6.4", "httpx>=0.27,<0.29", "anyio>=3.5.0,<5", "distro>=1.7.0,<2", @@ -45,6 +53,7 @@ setup( "selenium_stealth>=1.0.6", "undetected-chromedriver>=3.5.5", "sentencepiece>=0.2.0", + "openai", "sniffio", "tqdm>4" ], diff --git a/start_services.cmd b/start_services.cmd index 428c590..cee3b09 100644 --- a/start_services.cmd +++ b/start_services.cmd @@ -3,5 +3,15 @@ REM Up the provider in windows start ollama serve -REM Up Docker -cd searxng && docker compose up \ No newline at end of file +timeout /t 4 /nobreak >nul +for /f "tokens=*" %%i in ('docker ps -a -q') do docker stop %%i +echo All containers stopped + +docker-compose up +if %ERRORLEVEL% neq 0 ( + echo Error: Failed to start containers. Check Docker logs with 'docker compose logs'. + echo Possible fixes: Ensure Docker Desktop is running or check if port 8080 is free. + exit /b 1 +) + +timeout /t 10 /nobreak >nul \ No newline at end of file