XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 1
返回提交历史

XFEstudio/gpt4free

~ | new instructions for gui & interference

41759f30
Tekky <98614666+xtekky@users.noreply.github.com>
提交于

代码差异

1 个文件 +13 -3
Modified README.md +13 -3
@@ -14,6 +14,9 @@ from g4f.gui import run_gui
14 14
15 15 run_gui()
16 16 ```
17 preview:
18
19 <img width="1470" alt="image" src="https://github.com/xtekky/gpt4free/assets/98614666/57ad818a-a0dd-4eae-83e1-3fff848ae040">
17 20
18 21 - run interference from pypi package:
19 22 ```py
@@ -306,19 +309,26 @@ asyncio.run(run_all())
306 309
307 310 ### interference openai-proxy api (use with openai python package)
308 311
309 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.
312 #### run interference from pypi package:
313 ```py
314 from g4f.interference import run_interference
310 315
316 run_interference()
317 ```
318
319 #### run interference from repo:
320 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.
311 321
312 322 get requirements:
313 323
314 324 ```sh
315 pip install -r interference/requirements.txt
325 pip install -r etc/interference/requirements.txt
316 326 ```
317 327
318 328 run server:
319 329
320 330 ```sh
321 python3 -m interference.app
331 python3 -m etc/interference.app
322 332 ```
323 333
324 334 ```py