summaryrefslogtreecommitdiffstats
path: root/g4f/gui/server
diff options
context:
space:
mode:
authorH Lohaus <hlohaus@users.noreply.github.com>2024-04-06 12:03:32 +0200
committerGitHub <noreply@github.com>2024-04-06 12:03:32 +0200
commitda8cb8bdf1c2408587fb81e4f76eb542fa877630 (patch)
treef891ee32f37241e99f9f27f5932f144531e37604 /g4f/gui/server
parentAdd Installation Guide for Windows (diff)
downloadgpt4free-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 '')
-rw-r--r--g4f/gui/server/api.py2
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