Update app.py
Browse files
app.py
CHANGED
@@ -206,7 +206,7 @@ def generate(prompt, progress=gr.Progress(track_tqdm=True)):
|
|
206 |
).images
|
207 |
|
208 |
image_paths = [save_image(img) for img in images]
|
209 |
-
print(prompt_str, image_paths
|
210 |
return image_paths
|
211 |
|
212 |
with gr.Blocks(css=css,head=js,fill_height=True) as demo:
|
@@ -251,7 +251,6 @@ with gr.Blocks(css=css,head=js,fill_height=True) as demo:
|
|
251 |
if params.get("e", "0") == "1":
|
252 |
#update the image
|
253 |
#bind events
|
254 |
-
result.value = [Image.open(default_image)]
|
255 |
return [Image.open(default_image)]
|
256 |
return []
|
257 |
|
|
|
206 |
).images
|
207 |
|
208 |
image_paths = [save_image(img) for img in images]
|
209 |
+
print(prompt_str, image_paths)
|
210 |
return image_paths
|
211 |
|
212 |
with gr.Blocks(css=css,head=js,fill_height=True) as demo:
|
|
|
251 |
if params.get("e", "0") == "1":
|
252 |
#update the image
|
253 |
#bind events
|
|
|
254 |
return [Image.open(default_image)]
|
255 |
return []
|
256 |
|