Spaces:
Sleeping
Sleeping
Added dogs image
Browse files- app.py +5 -4
- demo/two-dogs-with-a-stick.jpg +0 -0
app.py
CHANGED
@@ -85,11 +85,12 @@ def run_grounding(input_image, grounding_caption, box_threshold, text_threshold)
|
|
85 |
|
86 |
# Define example images and their true labels for users to choose from
|
87 |
example_data = [
|
88 |
-
["./demo/
|
|
|
89 |
["./demo/Pleiades_Neo_Tucson_USA.jpg", "aircraft", 0.25, 0.25],
|
90 |
-
["./demo/SPOT_Storage.jpg", "storage", 0.25, 0.25],
|
91 |
["./demo/Satellite_Image_Marina_New_Zealand.jpg", "ship", 0.25, 0.25],
|
92 |
-
["./demo/Pleiades_HD15_Miami_Marina.jpg", "ship", 0.25, 0.25],
|
93 |
]
|
94 |
|
95 |
if __name__ == "__main__":
|
@@ -135,7 +136,7 @@ if __name__ == "__main__":
|
|
135 |
outputs = [gallery, dimensions, detections, stopwatch],
|
136 |
fn=run_grounding,
|
137 |
cache_examples=False,
|
138 |
-
label='Try
|
139 |
)
|
140 |
block.launch(share=False, show_api=False, show_error=True)
|
141 |
|
|
|
85 |
|
86 |
# Define example images and their true labels for users to choose from
|
87 |
example_data = [
|
88 |
+
["./demo/two-dogs-with-a-stick.jpg", "aircraft", 0.25, 0.25],
|
89 |
+
#["./demo/airport01.jpg", "aircraft", 0.25, 0.25],
|
90 |
["./demo/Pleiades_Neo_Tucson_USA.jpg", "aircraft", 0.25, 0.25],
|
91 |
+
#["./demo/SPOT_Storage.jpg", "storage", 0.25, 0.25],
|
92 |
["./demo/Satellite_Image_Marina_New_Zealand.jpg", "ship", 0.25, 0.25],
|
93 |
+
#["./demo/Pleiades_HD15_Miami_Marina.jpg", "ship", 0.25, 0.25],
|
94 |
]
|
95 |
|
96 |
if __name__ == "__main__":
|
|
|
136 |
outputs = [gallery, dimensions, detections, stopwatch],
|
137 |
fn=run_grounding,
|
138 |
cache_examples=False,
|
139 |
+
label='Try these images!'
|
140 |
)
|
141 |
block.launch(share=False, show_api=False, show_error=True)
|
142 |
|
demo/two-dogs-with-a-stick.jpg
ADDED
![]() |