summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorHeiner Lohaus <hlohaus@users.noreply.github.com>2024-04-06 10:47:43 +0200
committerHeiner Lohaus <hlohaus@users.noreply.github.com>2024-04-06 10:47:43 +0200
commit0de9ca20044ced84c12fbcf3b6de90ac193025e4 (patch)
tree68b4041d0f7f1ce93e5d4e06f3cf89a5651911fd /docs
parentUpdate client.md (diff)
downloadgpt4free-0de9ca20044ced84c12fbcf3b6de90ac193025e4.tar
gpt4free-0de9ca20044ced84c12fbcf3b6de90ac193025e4.tar.gz
gpt4free-0de9ca20044ced84c12fbcf3b6de90ac193025e4.tar.bz2
gpt4free-0de9ca20044ced84c12fbcf3b6de90ac193025e4.tar.lz
gpt4free-0de9ca20044ced84c12fbcf3b6de90ac193025e4.tar.xz
gpt4free-0de9ca20044ced84c12fbcf3b6de90ac193025e4.tar.zst
gpt4free-0de9ca20044ced84c12fbcf3b6de90ac193025e4.zip
Diffstat (limited to 'docs')
-rw-r--r--docs/webview.md30
1 files changed, 30 insertions, 0 deletions
diff --git a/docs/webview.md b/docs/webview.md
new file mode 100644
index 00000000..afd6c76c
--- /dev/null
+++ b/docs/webview.md
@@ -0,0 +1,30 @@
+### G4F - Webview GUI
+
+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.
+
+1. Install all python requirements with:
+
+```bash
+pip install g4f[webview]
+```
+
+2. *a)* Follow the **OS specific** steps here:
+ [pywebview installation](https://pywebview.flowrl.com/guide/installation.html#dependencies)
+
+2. *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](https://developer.microsoft.com/en-us/microsoft-edge/webview2/). If you already have *WebView2 Runtime* installed but are encountering issues, navigate to *Installed Windows Apps*, select *WebView2*, and opt for the repair option.
+
+3. Run the app with:
+
+```python
+from g4f.gui.webview import run_webview
+run_webview(debug=True)
+```
+or execute the following command:
+```bash
+python -m g4f.gui.webview -debug
+```
+
+[Return to Home](/) \ No newline at end of file