apperance change and more examples
Browse files- app.py +5 -3
- examples/img2.jpeg +0 -0
- examples/img3.jpeg +0 -0
- examples/img4.jpeg +0 -0
app.py
CHANGED
@@ -59,15 +59,17 @@ introduced in <a href="https://www.google.com/">my bachelor thesis</a> (link wil
|
|
59 |
demo = gr.Interface(
|
60 |
query_image,
|
61 |
inputs=[gr.Image(), "text", "checkbox", gr.Slider(0, 1, value=0.25)],
|
62 |
-
outputs=gr.Image(type='pil', label='output').style(height=
|
63 |
title="Object Detection Using Textual Queries",
|
64 |
description=description,
|
65 |
examples=[
|
66 |
-
["examples/img1.jpeg", "Find a person.", True, 0.
|
|
|
|
|
|
|
67 |
],
|
68 |
cache_examples=False,
|
69 |
allow_flagging = "never",
|
70 |
-
theme = "darkdefault",
|
71 |
)
|
72 |
demo.launch()
|
73 |
|
|
|
59 |
demo = gr.Interface(
|
60 |
query_image,
|
61 |
inputs=[gr.Image(), "text", "checkbox", gr.Slider(0, 1, value=0.25)],
|
62 |
+
outputs=gr.Image(type='pil', label='output').style(height=600, width=600),
|
63 |
title="Object Detection Using Textual Queries",
|
64 |
description=description,
|
65 |
examples=[
|
66 |
+
["examples/img1.jpeg", "Find a person.", True, 0.45],
|
67 |
+
["examples/img2.jpeg", "Detect a person with skis.", True, 0.25],
|
68 |
+
["examples/img3.jpeg", "There should be a cat in this picture, where?", True, 0.25],
|
69 |
+
["examples/img4.jpeg", "Can you find an elephant", True, 0.25],
|
70 |
],
|
71 |
cache_examples=False,
|
72 |
allow_flagging = "never",
|
|
|
73 |
)
|
74 |
demo.launch()
|
75 |
|
examples/img2.jpeg
ADDED
![]() |
examples/img3.jpeg
ADDED
![]() |
examples/img4.jpeg
ADDED
![]() |