Update app.py
Browse files
app.py
CHANGED
@@ -41,7 +41,7 @@ MAX_SEED = 2**32-1
|
|
41 |
|
42 |
def imgageHasUpdated(theImage):
|
43 |
print(theImage)
|
44 |
-
outputs=lnk_output
|
45 |
|
46 |
def extend_choices(choices):
|
47 |
return choices[:num_models] + (num_models - len(choices[:num_models])) * ['NA']
|
@@ -93,7 +93,7 @@ async def infer(model_str, prompt, nprompt="", height=0, width=0, steps=0, cfg=0
|
|
93 |
# lnk_output(value=png_path)
|
94 |
|
95 |
image = save_image(result, png_path, model_str, prompt, nprompt, height, width, steps, cfg, theSeed)
|
96 |
-
imgageHasUpdated(
|
97 |
return image
|
98 |
return None
|
99 |
|
|
|
41 |
|
42 |
def imgageHasUpdated(theImage):
|
43 |
print(theImage)
|
44 |
+
# outputs=lnk_output
|
45 |
|
46 |
def extend_choices(choices):
|
47 |
return choices[:num_models] + (num_models - len(choices[:num_models])) * ['NA']
|
|
|
93 |
# lnk_output(value=png_path)
|
94 |
|
95 |
image = save_image(result, png_path, model_str, prompt, nprompt, height, width, steps, cfg, theSeed)
|
96 |
+
imgageHasUpdated(result)
|
97 |
return image
|
98 |
return None
|
99 |
|