Vijish commited on
Commit
3405433
Β·
verified Β·
1 Parent(s): ccf455b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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
- # Ensure all images are in 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,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
+