XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 1
返回提交历史

XFEstudio/gpt4free

Update api.py

da8cb8bd
H Lohaus <hlohaus@users.noreply.github.com>
提交于

代码差异

1 个文件 +1 -1
Modified g4f/gui/server/api.py +1 -1
@@ -137,7 +137,7 @@ class Api():
137 137
138 138 def on_image_selection(self, filename):
139 139 filename = filename[0] if isinstance(filename, list) and filename else filename
140 if filename is not None and os.path.exists(filename):
140 if filename and os.path.exists(filename):
141 141 self.image = filename
142 142 else:
143 143 self.image = None