From a466a86ee60873a39ac6c5a790ec8c3fa1f598c0 Mon Sep 17 00:00:00 2001 From: Heiner Lohaus Date: Tue, 19 Mar 2024 20:28:13 +0100 Subject: Fix requirements in gui api --- g4f/gui/server/api.py | 5 +---- 1 file changed, 1 insertion(+), 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(), -- cgit v1.2.3