awacke1 commited on
Commit
edf4fe8
1 Parent(s): e6c79f5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -349,7 +349,7 @@ This demo showcases the capabilities of [TheMistoAI/MistoLine](https://huggingfa
349
  like_button.click(fn=lambda x: vote(x, 'likes'), inputs=[selected_image], outputs=[image_gallery, metadata_df])
350
  dislike_button.click(fn=lambda x: vote(x, 'dislikes'), inputs=[selected_image], outputs=[image_gallery, metadata_df])
351
  heart_button.click(fn=lambda x: vote(x, 'hearts'), inputs=[selected_image], outputs=[image_gallery, metadata_df])
352
- delete_image_button.click(fn=deletedelete_image_button.click(fn=delete_image, inputs=[selected_image], outputs=[image_gallery, metadata_df])
353
  delete_all_button.click(fn=delete_all_images, inputs=[], outputs=[image_gallery, metadata_df])
354
 
355
  demo.load(fn=lambda: (get_image_gallery(), image_metadata.values.tolist()), outputs=[image_gallery, metadata_df])
 
349
  like_button.click(fn=lambda x: vote(x, 'likes'), inputs=[selected_image], outputs=[image_gallery, metadata_df])
350
  dislike_button.click(fn=lambda x: vote(x, 'dislikes'), inputs=[selected_image], outputs=[image_gallery, metadata_df])
351
  heart_button.click(fn=lambda x: vote(x, 'hearts'), inputs=[selected_image], outputs=[image_gallery, metadata_df])
352
+ delete_image_button.click(fn=delete_image, inputs=[selected_image], outputs=[image_gallery, metadata_df])
353
  delete_all_button.click(fn=delete_all_images, inputs=[], outputs=[image_gallery, metadata_df])
354
 
355
  demo.load(fn=lambda: (get_image_gallery(), image_metadata.values.tolist()), outputs=[image_gallery, metadata_df])