Update app.py
Browse files
app.py
CHANGED
@@ -251,8 +251,8 @@ 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 |
|
257 |
|
258 |
result.change(fn=lambda x:x, inputs=[prompt,result], outputs=[], js=f'''(p,img)=>window.uploadImage(p, img,"process_finished","demo_hf_{cfg.get("name")}_card", "finish")''')
|
|
|
251 |
if params.get("e", "0") == "1":
|
252 |
#update the image
|
253 |
#bind events
|
254 |
+
return [Image.open(default_image)]
|
255 |
+
return []
|
256 |
|
257 |
|
258 |
result.change(fn=lambda x:x, inputs=[prompt,result], outputs=[], js=f'''(p,img)=>window.uploadImage(p, img,"process_finished","demo_hf_{cfg.get("name")}_card", "finish")''')
|