xmrt commited on
Commit
944bcc1
1 Parent(s): 4a3abdc

no examples

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -58,14 +58,17 @@ with gr.Blocks() as demo:
58
  with gr.Column():
59
  with gr.Tab("Upload image"):
60
  gr.Markdown("""
61
- [OWL-ViT](https://huggingface.co/docs/transformers/model_doc/owlvit) is a vision transformer architecture that can be used for image inputs with text queries. This is achieved by adding a text embedding layer to the model, which allows it to process both image and text inputs.
62
  \n You can use to query images with text descriptions of any object. To use it, simply upload an image or capture one with the webcam and enter comma separated text descriptions of objects you want to query the image for.
63
- \n You can also use the score threshold slider to set a threshold to filter out low probability predictions.
64
  """)
65
  with gr.Row():
66
  with gr.Column():
 
67
  inputs_file=[gr.Image(source="upload"), gr.Textbox(), gr.Slider(0, 1, value=0.1)]
68
  submit_btn = gr.Button("Submit")
 
 
 
69
 
70
  im_output = gr.Image()
71
 
 
58
  with gr.Column():
59
  with gr.Tab("Upload image"):
60
  gr.Markdown("""
61
+ OWL-ViT(https://huggingface.co/docs/transformers/model_doc/owlvit) is a vision transformer architecture that can be used for image inputs with text queries. This is achieved by adding a text embedding layer to the model, which allows it to process both image and text inputs.
62
  \n You can use to query images with text descriptions of any object. To use it, simply upload an image or capture one with the webcam and enter comma separated text descriptions of objects you want to query the image for.
 
63
  """)
64
  with gr.Row():
65
  with gr.Column():
66
+
67
  inputs_file=[gr.Image(source="upload"), gr.Textbox(), gr.Slider(0, 1, value=0.1)]
68
  submit_btn = gr.Button("Submit")
69
+ gr.Markdown("""Insert an image above and add text descriptions of what you are looking for.
70
+ \n You can also use the score threshold slider to set a threshold to filter out low probability predictions.
71
+ """)
72
 
73
  im_output = gr.Image()
74