Spaces:
Sleeping
Sleeping
Commit
·
17f5ac6
1
Parent(s):
ad6a3fb
Update app.py
Browse files
app.py
CHANGED
@@ -78,7 +78,7 @@ with gr.Blocks() as demo:
|
|
78 |
o2 = gr.Textbox(label="Similarity score")
|
79 |
title = "Cliping and Cropping"
|
80 |
description = "<p style= 'color:white'>Extract sections of images from your image by using OpenAI's CLIP and Facebooks Detr implemented on HuggingFace Transformers, if the similarity score is not so much, then please consider the prediction to be void.</p>"
|
81 |
-
examples=[['Assets/ex3.jpg', 'black bag', 0.96],['Assets/ex2.jpg', 'man in red dress', 0.85],['Assets/ex1.
|
82 |
article = "<p style= 'color:white; text-align:center;'><a href='https://github.com/Vishnunkumar/clipcrop' target='_blank'>clipcrop</a></p>"
|
83 |
gr.Interface(fn=extract_image, inputs=[i1, i2, i3], outputs=[o1, o2], title=title, description=description, article=article, examples=examples, enable_queue=True)
|
84 |
with gr.Tab("Zero Shot Image Classification"):
|
|
|
78 |
o2 = gr.Textbox(label="Similarity score")
|
79 |
title = "Cliping and Cropping"
|
80 |
description = "<p style= 'color:white'>Extract sections of images from your image by using OpenAI's CLIP and Facebooks Detr implemented on HuggingFace Transformers, if the similarity score is not so much, then please consider the prediction to be void.</p>"
|
81 |
+
examples=[['Assets/ex3.jpg', 'black bag', 0.96],['Assets/ex2.jpg', 'man in red dress', 0.85],['Assets/ex1.png', 'a white car', 0.7]]
|
82 |
article = "<p style= 'color:white; text-align:center;'><a href='https://github.com/Vishnunkumar/clipcrop' target='_blank'>clipcrop</a></p>"
|
83 |
gr.Interface(fn=extract_image, inputs=[i1, i2, i3], outputs=[o1, o2], title=title, description=description, article=article, examples=examples, enable_queue=True)
|
84 |
with gr.Tab("Zero Shot Image Classification"):
|