Mithu96 commited on
Commit
ae592b3
·
verified ·
1 Parent(s): 0bcb4b8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -10
app.py CHANGED
@@ -56,16 +56,7 @@ def query_image(img_url, text_queries, score_threshold):
56
 
57
 
58
  description = """
59
- Gradio demo for <a href="https://huggingface.co/docs/transformers/main/en/model_doc/owlvit">OWL-ViT</a>,
60
- introduced in <a href="https://arxiv.org/abs/2205.06230">Simple Open-Vocabulary Object Detection
61
- with Vision Transformers</a>.
62
- \n\nYou can use OWL-ViT to query images with text descriptions of any object.
63
- To use it, simply input the URL of an image and enter comma separated text descriptions of objects you want to query the image for. You
64
- can also use the score threshold slider to set a threshold to filter out low probability predictions.
65
- \n\nOWL-ViT is trained on text templates,
66
- hence you can get better predictions by querying the image with text templates used in training the original model: *"photo of a star-spangled banner"*,
67
- *"image of a shoe"*. Refer to the <a href="https://arxiv.org/abs/2103.00020">CLIP</a> paper to see the full list of text templates used to augment the training data.
68
- \n\n<a href="https://colab.research.google.com/github/huggingface/notebooks/blob/main/examples/zeroshot_object_detection_with_owlvit.ipynb">Colab demo</a>
69
  """
70
  demo = gr.Interface(
71
  query_image,
 
56
 
57
 
58
  description = """
59
+ DEMO
 
 
 
 
 
 
 
 
 
60
  """
61
  demo = gr.Interface(
62
  query_image,