Update app.py
Browse files
app.py
CHANGED
|
@@ -64,7 +64,7 @@ def extract_image(image, text, prob, num=1):
|
|
| 64 |
fi = sorted(final_ims, key=lambda item: item.get("score"), reverse=True)
|
| 65 |
return fi[0]['image'], fi[0]['score']
|
| 66 |
|
| 67 |
-
title = "
|
| 68 |
description = "Extract sections of images from your image by using OpenAI's CLIP and Facebooks Detr implemented on HuggingFace Transformers"
|
| 69 |
examples=[['ex3.jpg', 'black bag', 0.96],['ex2.jpg', 'man in red dress', 0.85]]
|
| 70 |
article = "<p style='text-align: center'><a href='https://github.com/Vishnunkumar/clipcrop' target='_blank'>clipcrop</a></p>"
|
|
|
|
| 64 |
fi = sorted(final_ims, key=lambda item: item.get("score"), reverse=True)
|
| 65 |
return fi[0]['image'], fi[0]['score']
|
| 66 |
|
| 67 |
+
title = "ClipNCrop"
|
| 68 |
description = "Extract sections of images from your image by using OpenAI's CLIP and Facebooks Detr implemented on HuggingFace Transformers"
|
| 69 |
examples=[['ex3.jpg', 'black bag', 0.96],['ex2.jpg', 'man in red dress', 0.85]]
|
| 70 |
article = "<p style='text-align: center'><a href='https://github.com/Vishnunkumar/clipcrop' target='_blank'>clipcrop</a></p>"
|