diff options
author | H Lohaus <hlohaus@users.noreply.github.com> | 2024-03-19 20:29:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-19 20:29:29 +0100 |
commit | 4086f5b365d00535fe40f183f3b7580c80cffb00 (patch) | |
tree | 0d3d1cfc072ba4208423089cc6b8a842b21918a6 /g4f | |
parent | Merge pull request #1726 from hlohaus/giga (diff) | |
parent | Fix requirements in gui api (diff) | |
download | gpt4free-0.2.5.9.tar gpt4free-0.2.5.9.tar.gz gpt4free-0.2.5.9.tar.bz2 gpt4free-0.2.5.9.tar.lz gpt4free-0.2.5.9.tar.xz gpt4free-0.2.5.9.tar.zst gpt4free-0.2.5.9.zip |
Diffstat (limited to '')
-rw-r--r-- | g4f/gui/server/api.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/g4f/gui/server/api.py b/g4f/gui/server/api.py index 43bb4250..ed904be8 100644 --- a/g4f/gui/server/api.py +++ b/g4f/gui/server/api.py @@ -10,11 +10,9 @@ from functools import partial try: import webview import platformdirs -except ImportError: - ... -try: from plyer import camera from plyer import filechooser + app_storage_path = platformdirs.user_pictures_dir has_plyer = True except ImportError: has_plyer = False @@ -28,7 +26,6 @@ try: has_android = True except ImportError: run_on_ui_thread = lambda a : a - app_storage_path = platformdirs.user_pictures_dir user_select_image = partial( filechooser.open_file, path=platformdirs.user_pictures_dir(), |