Commit ee9d4870 authored by w-e-w's avatar w-e-w

fix gallery black image issue

parent cfb90a93
...@@ -93,7 +93,7 @@ def txt2img_upscale(id_task: str, request: gr.Request, gallery, gallery_index, g ...@@ -93,7 +93,7 @@ def txt2img_upscale(id_task: str, request: gr.Request, gallery, gallery_index, g
new_gallery.extend(processed.images) new_gallery.extend(processed.images)
else: else:
fake_image = Image.new(mode="RGB", size=(1, 1)) fake_image = Image.new(mode="RGB", size=(1, 1))
fake_image.already_saved_as = image["name"] fake_image.already_saved_as = image["name"].rsplit('?', 1)[0]
new_gallery.append(fake_image) new_gallery.append(fake_image)
geninfo["infotexts"][gallery_index] = processed.info geninfo["infotexts"][gallery_index] = processed.info
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment