mirror of https://github.com/xtekky/gpt4free.git
commit
4086f5b365
|
@ -10,11 +10,9 @@ from functools import partial
|
||||||
try:
|
try:
|
||||||
import webview
|
import webview
|
||||||
import platformdirs
|
import platformdirs
|
||||||
except ImportError:
|
|
||||||
...
|
|
||||||
try:
|
|
||||||
from plyer import camera
|
from plyer import camera
|
||||||
from plyer import filechooser
|
from plyer import filechooser
|
||||||
|
app_storage_path = platformdirs.user_pictures_dir
|
||||||
has_plyer = True
|
has_plyer = True
|
||||||
except ImportError:
|
except ImportError:
|
||||||
has_plyer = False
|
has_plyer = False
|
||||||
|
@ -28,7 +26,6 @@ try:
|
||||||
has_android = True
|
has_android = True
|
||||||
except ImportError:
|
except ImportError:
|
||||||
run_on_ui_thread = lambda a : a
|
run_on_ui_thread = lambda a : a
|
||||||
app_storage_path = platformdirs.user_pictures_dir
|
|
||||||
user_select_image = partial(
|
user_select_image = partial(
|
||||||
filechooser.open_file,
|
filechooser.open_file,
|
||||||
path=platformdirs.user_pictures_dir(),
|
path=platformdirs.user_pictures_dir(),
|
||||||
|
|
Loading…
Reference in New Issue