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

XFEstudio/gpt4free

Fix requirements in gui api

a466a86e
Heiner Lohaus <hlohaus@users.noreply.github.com>
提交于

代码差异

1 个文件 +1 -4
Modified g4f/gui/server/api.py +1 -4
@@ -10,11 +10,9 @@ from functools import partial
10 10 try:
11 11 import webview
12 12 import platformdirs
13 except ImportError:
14 ...
15 try:
16 13 from plyer import camera
17 14 from plyer import filechooser
15 app_storage_path = platformdirs.user_pictures_dir
18 16 has_plyer = True
19 17 except ImportError:
20 18 has_plyer = False
@@ -28,7 +26,6 @@ try:
28 26 has_android = True
29 27 except ImportError:
30 28 run_on_ui_thread = lambda a : a
31 app_storage_path = platformdirs.user_pictures_dir
32 29 user_select_image = partial(
33 30 filechooser.open_file,
34 31 path=platformdirs.user_pictures_dir(),