Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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=
|
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])
|