Keltezaa commited on
Commit
8bd568c
·
verified ·
1 Parent(s): cd54ddb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -454,7 +454,7 @@ def generate_image(prompt_mash, steps, seed, cfg_scale, width, height, progress)
454
  output_type="pil",
455
  good_vae=good_vae,
456
  ):
457
- print(f"Debug: Yielding image of type {type(img)}") # Check the type of the image
458
  if isinstance(img, float):
459
  print("Error: A float was returned instead of an image.") # Log if img is a float
460
  raise ValueError("Expected an image, but got a float.") # Raise error if a float is found
@@ -462,6 +462,7 @@ def generate_image(prompt_mash, steps, seed, cfg_scale, width, height, progress)
462
  final_image = img # Update final_image with the current image
463
  return final_image
464
 
 
465
  def generate_image_to_image(prompt_mash, image_input_path, image_strength, steps, cfg_scale, width, height, seed):
466
  print("Generating image from input...")
467
  pipe_i2i.to("cuda")
@@ -585,7 +586,6 @@ def run_lora(prompt, cfg_scale, steps, selected_info_1, selected_info_2, selecte
585
 
586
  run_lora.zerogpu = True
587
 
588
-
589
  def get_huggingface_safetensors(link):
590
  split_link = link.split("/")
591
  if len(split_link) == 4:
 
454
  output_type="pil",
455
  good_vae=good_vae,
456
  ):
457
+ print(f"Debug: Yielding image of type {type(img)}") # Check image type
458
  if isinstance(img, float):
459
  print("Error: A float was returned instead of an image.") # Log if img is a float
460
  raise ValueError("Expected an image, but got a float.") # Raise error if a float is found
 
462
  final_image = img # Update final_image with the current image
463
  return final_image
464
 
465
+
466
  def generate_image_to_image(prompt_mash, image_input_path, image_strength, steps, cfg_scale, width, height, seed):
467
  print("Generating image from input...")
468
  pipe_i2i.to("cuda")
 
586
 
587
  run_lora.zerogpu = True
588
 
 
589
  def get_huggingface_safetensors(link):
590
  split_link = link.split("/")
591
  if len(split_link) == 4: