Spaces:
Sleeping
Sleeping
生成前でもリフレッシュ
Browse files
app.py
CHANGED
|
@@ -306,8 +306,9 @@ def infer(prompt, neg, seed, rand, w, h, cfg, steps, scheduler_type,
|
|
| 306 |
|
| 307 |
processed_img, processed_gallery_items = process_image(img, gallery_items)
|
| 308 |
if processed_img is None or processed_gallery_items is None:
|
| 309 |
-
|
| 310 |
-
|
|
|
|
| 311 |
latest_caption_table = make_html_table(caption_text)
|
| 312 |
return processed_img, processed_gallery_items, latest_caption_table
|
| 313 |
|
|
|
|
| 306 |
|
| 307 |
processed_img, processed_gallery_items = process_image(img, gallery_items)
|
| 308 |
if processed_img is None or processed_gallery_items is None:
|
| 309 |
+
# These two lines must be indented
|
| 310 |
+
print("Image processing failed, skipping history update.")
|
| 311 |
+
return None, history_gallery, history_tables
|
| 312 |
latest_caption_table = make_html_table(caption_text)
|
| 313 |
return processed_img, processed_gallery_items, latest_caption_table
|
| 314 |
|