Skip to content
代码片段 群组 项目
未验证 提交 7da73cbc 编辑于 作者: AUTOMATIC1111's avatar AUTOMATIC1111 提交者: GitHub
浏览文件

Merge pull request #12717 from brkirch/make-temp-directory

Create Gradio temp directory if necessary
No related branches found
No related tags found
无相关合并请求
......@@ -44,6 +44,8 @@ def save_pil_to_file(self, pil_image, dir=None, format="png"):
if shared.opts.temp_dir != "":
dir = shared.opts.temp_dir
else:
os.makedirs(dir, exist_ok=True)
use_metadata = False
metadata = PngImagePlugin.PngInfo()
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册