nsfwalex commited on
Commit
0f18576
1 Parent(s): ad47e83

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 None
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")''')