mirror of
https://github.com/xtekky/gpt4free.git
synced 2025-12-06 02:30:41 -08:00
Add Installation Guide for Windows
Improve Contributors list in Readme
This commit is contained in:
parent
2dbf467792
commit
0de9ca2004
11 changed files with 176 additions and 785 deletions
30
docs/webview.md
Normal file
30
docs/webview.md
Normal file
|
|
@ -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](/)
|
||||
Loading…
Add table
Add a link
Reference in a new issue