examples changed
Browse files- .DS_Store +0 -0
- app.py +8 -1
- examples/.DS_Store +0 -0
- examples/img1.jpeg +0 -0
- examples/img2.jpeg +0 -0
- examples/img3.jpeg +0 -0
- examples/img4.jpeg +0 -0
- examples/img5.jpeg +0 -0
- examples/img6.jpeg +0 -0
.DS_Store
CHANGED
Binary files a/.DS_Store and b/.DS_Store differ
|
|
app.py
CHANGED
@@ -109,7 +109,14 @@ demo = gr.Interface(
|
|
109 |
#outputs=gr.Image(type='numpy', label='output').style(height=600, width=600),
|
110 |
title="Text-Based Object Detection",
|
111 |
description=description,
|
112 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
113 |
cache_examples=False,
|
114 |
allow_flagging = "never",
|
115 |
css = """
|
|
|
109 |
#outputs=gr.Image(type='numpy', label='output').style(height=600, width=600),
|
110 |
title="Text-Based Object Detection",
|
111 |
description=description,
|
112 |
+
examples=[
|
113 |
+
["examples/img1.jpeg", "Find a person.", True, 0.45],
|
114 |
+
["examples/img2.jpeg", "Could you mark a horse?", False, 0.25],
|
115 |
+
["examples/img3.jpeg", "There should be a cat in this picture, where?", True, 0.25],
|
116 |
+
["examples/img4.jpeg", "Mark a tv in this image.", False, 0.1],
|
117 |
+
["examples/img5.jpeg", "Is there a zebra in this picture?", True, 0.4],
|
118 |
+
["examples/img6.jpeg", "Look for a stop sign.", True, 0.5],
|
119 |
+
],
|
120 |
cache_examples=False,
|
121 |
allow_flagging = "never",
|
122 |
css = """
|
examples/.DS_Store
ADDED
Binary file (6.15 kB). View file
|
|
examples/img1.jpeg
ADDED
![]() |
examples/img2.jpeg
ADDED
![]() |
examples/img3.jpeg
ADDED
![]() |
examples/img4.jpeg
ADDED
![]() |
examples/img5.jpeg
ADDED
![]() |
examples/img6.jpeg
ADDED
![]() |