From 41759f30fdd7b3e4a95d29924c1fb76982eba1d8 Mon Sep 17 00:00:00 2001 From: Tekky <98614666+xtekky@users.noreply.github.com> Date: Fri, 6 Oct 2023 19:59:12 +0100 Subject: [PATCH] ~ | new instructions for gui & interference --- README.md | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 676f2559..ddcd618d 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,9 @@ from g4f.gui import run_gui run_gui() ``` +preview: + +image - run interference from pypi package: ```py @@ -306,19 +309,26 @@ asyncio.run(run_all()) ### interference openai-proxy api (use with openai python package) -If you want to use the embedding function, you need to get a huggingface token. You can get one at https://huggingface.co/settings/tokens make sure your role is set to write. If you have your token, just use it instead of the OpenAI api-key. +#### run interference from pypi package: +```py +from g4f.interference import run_interference +run_interference() +``` + +#### run interference from repo: +If you want to use the embedding function, you need to get a huggingface token. You can get one at https://huggingface.co/settings/tokens make sure your role is set to write. If you have your token, just use it instead of the OpenAI api-key. get requirements: ```sh -pip install -r interference/requirements.txt +pip install -r etc/interference/requirements.txt ``` run server: ```sh -python3 -m interference.app +python3 -m etc/interference.app ``` ```py