summaryrefslogtreecommitdiffstats
path: root/g4f/gui/server
diff options
context:
space:
mode:
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