Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -83,7 +83,7 @@ def load_image_as_np_array(img, compress=False):
|
|
| 83 |
img = np.array(img)
|
| 84 |
return img
|
| 85 |
|
| 86 |
-
|
| 87 |
query_image,
|
| 88 |
inputs=[gr.Image(),
|
| 89 |
gr.Text(value="insect",label="提示词(多个用,分开)"),
|
|
@@ -92,4 +92,4 @@ demo1 = gr.Interface(
|
|
| 92 |
outputs=[gr.Annotatedimage()],
|
| 93 |
title="Zero-Shot Object Detection with OWLv2",
|
| 94 |
)
|
| 95 |
-
|
|
|
|
| 83 |
img = np.array(img)
|
| 84 |
return img
|
| 85 |
|
| 86 |
+
demo = gr.Interface(
|
| 87 |
query_image,
|
| 88 |
inputs=[gr.Image(),
|
| 89 |
gr.Text(value="insect",label="提示词(多个用,分开)"),
|
|
|
|
| 92 |
outputs=[gr.Annotatedimage()],
|
| 93 |
title="Zero-Shot Object Detection with OWLv2",
|
| 94 |
)
|
| 95 |
+
demo.launch()
|