Uthar commited on
Commit
3a1595b
·
verified ·
1 Parent(s): 7c37fa6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -40,7 +40,7 @@ default_models = models[:num_models]
40
  MAX_SEED = 2**32-1
41
 
42
  def imgageHasUpdated(theImage):
43
- print(theImage)
44
 
45
  def extend_choices(choices):
46
  return choices[:num_models] + (num_models - len(choices[:num_models])) * ['NA']
@@ -90,8 +90,9 @@ async def infer(model_str, prompt, nprompt="", height=0, width=0, steps=0, cfg=0
90
  with lock:
91
  png_path = model_str.replace("/", "_") + " - " + get_current_time() + "_" + str(theSeed) + ".png"
92
  # lnk_output(value=png_path)
93
- imgageHasUpdated(png_path)
94
  image = save_image(result, png_path, model_str, prompt, nprompt, height, width, steps, cfg, theSeed)
 
95
  return image
96
  return None
97
 
 
40
  MAX_SEED = 2**32-1
41
 
42
  def imgageHasUpdated(theImage):
43
+ print(theImage.result)
44
 
45
  def extend_choices(choices):
46
  return choices[:num_models] + (num_models - len(choices[:num_models])) * ['NA']
 
90
  with lock:
91
  png_path = model_str.replace("/", "_") + " - " + get_current_time() + "_" + str(theSeed) + ".png"
92
  # lnk_output(value=png_path)
93
+
94
  image = save_image(result, png_path, model_str, prompt, nprompt, height, width, steps, cfg, theSeed)
95
+ imgageHasUpdated(image)
96
  return image
97
  return None
98