From e4bfd9db5cb6f8cc3c562519633eff2018236240 Mon Sep 17 00:00:00 2001 From: H Lohaus Date: Thu, 21 Nov 2024 14:05:50 +0100 Subject: Improve slim docker image example, clean up OpenaiChat provider (#2397) * Improve slim docker image example, clean up OpenaiChat provider * Enhance event loop management for asynchronous generators * Fix attribute " shutdown_default_executor" not found in old python versions * asyncio file added with all async helpers --- README.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index cfaaadc0..4f61d791 100644 --- a/README.md +++ b/README.md @@ -105,15 +105,18 @@ docker run \ hlohaus789/g4f:latest ``` -Or run this command to start the gui without a browser and in the debug mode: +Start the GUI without a browser requirement and in debug mode. +There's no need to update the Docker image every time. +Simply remove the g4f package from the image and install the Python package: ```bash -docker pull hlohaus789/g4f:latest-slim docker run \ -p 8080:8080 \ -v ${PWD}/har_and_cookies:/app/har_and_cookies \ -v ${PWD}/generated_images:/app/generated_images \ hlohaus789/g4f:latest-slim \ - python -m g4f.cli gui -debug + rm -r -f /app/g4f/ \ + && pip install -U g4f[slim] \ + && python -m g4f.cli gui -d ``` 3. **Access the Client:** -- cgit v1.2.3