Open the GUI in a window of your OS. Runs on a local/static/ssl server and use a JavaScript API. Supports login into the OpenAI Chat (.har files), Image Upload and streamed Text Generation.
Supports all platforms, but only Linux/Windows tested.
- Install all python requirements with:
pip install g4f[webview]
-
a) Follow the OS specific steps here: pywebview installation
-
b) WebView2 on Windows: Our application requires the WebView2 Runtime to be installed on your system. If you do not have it installed, please download and install it from the Microsoft Developer Website. If you already have WebView2 Runtime installed but are encountering issues, navigate to Installed Windows Apps, select WebView2, and opt for the repair option.
-
Run the app with:
from g4f.gui.webview import run_webview
run_webview(debug=True)
or execute the following command:
python -m g4f.gui.webview -debug