Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -376,7 +376,7 @@ def generate_images_with_progress(prompt, negative_prompt, batch_count, use_cont
|
|
376 |
|
377 |
clear_memory()
|
378 |
|
379 |
-
#
|
380 |
pil_images = [img if isinstance(img, Image.Image) else Image.fromarray(np.array(img)) for img in images]
|
381 |
|
382 |
return pil_images
|
@@ -557,3 +557,4 @@ if __name__ == "__main__":
|
|
557 |
# Your Gradio interface setup here
|
558 |
demo.launch(auth=("roland", "roland"), debug=True)
|
559 |
clear_memory()
|
|
|
|
376 |
|
377 |
clear_memory()
|
378 |
|
379 |
+
# Convert all generated images to PIL format
|
380 |
pil_images = [img if isinstance(img, Image.Image) else Image.fromarray(np.array(img)) for img in images]
|
381 |
|
382 |
return pil_images
|
|
|
557 |
# Your Gradio interface setup here
|
558 |
demo.launch(auth=("roland", "roland"), debug=True)
|
559 |
clear_memory()
|
560 |
+
|