diff options
author | H Lohaus <hlohaus@users.noreply.github.com> | 2024-04-06 12:03:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-06 12:03:32 +0200 |
commit | da8cb8bdf1c2408587fb81e4f76eb542fa877630 (patch) | |
tree | f891ee32f37241e99f9f27f5932f144531e37604 /g4f | |
parent | Add Installation Guide for Windows (diff) | |
download | gpt4free-da8cb8bdf1c2408587fb81e4f76eb542fa877630.tar gpt4free-da8cb8bdf1c2408587fb81e4f76eb542fa877630.tar.gz gpt4free-da8cb8bdf1c2408587fb81e4f76eb542fa877630.tar.bz2 gpt4free-da8cb8bdf1c2408587fb81e4f76eb542fa877630.tar.lz gpt4free-da8cb8bdf1c2408587fb81e4f76eb542fa877630.tar.xz gpt4free-da8cb8bdf1c2408587fb81e4f76eb542fa877630.tar.zst gpt4free-da8cb8bdf1c2408587fb81e4f76eb542fa877630.zip |
Diffstat (limited to 'g4f')
-rw-r--r-- | g4f/gui/server/api.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/g4f/gui/server/api.py b/g4f/gui/server/api.py index 29566595..ab9ad331 100644 --- a/g4f/gui/server/api.py +++ b/g4f/gui/server/api.py @@ -137,7 +137,7 @@ class Api(): def on_image_selection(self, filename): filename = filename[0] if isinstance(filename, list) and filename else filename - if filename is not None and os.path.exists(filename): + if filename and os.path.exists(filename): self.image = filename else: self.image = None |