Spaces:
Sleeping
Sleeping
Commit ·
1cb1590
1
Parent(s): 2d1fe2b
Update app.py
Browse files
app.py
CHANGED
|
@@ -83,12 +83,12 @@ def fig2img(fig):
|
|
| 83 |
return img
|
| 84 |
|
| 85 |
|
| 86 |
-
description = """Upload an image and get the
|
| 87 |
title = """Object Detection"""
|
| 88 |
|
| 89 |
# Create examples list from "examples/" directory
|
| 90 |
# example_list = [["examples/" + example] for example in os.listdir("examples")]
|
| 91 |
-
|
| 92 |
|
| 93 |
image_in = gr.components.Image(label="Upload an image")
|
| 94 |
image_out = gr.components.Image()
|
|
@@ -101,5 +101,5 @@ gr.Interface(fn=model_inference,
|
|
| 101 |
outputs=image_out,
|
| 102 |
title=title,
|
| 103 |
description=description,
|
| 104 |
-
|
| 105 |
).launch()
|
|
|
|
| 83 |
return img
|
| 84 |
|
| 85 |
|
| 86 |
+
description = """Upload an image and get the detected classes"""
|
| 87 |
title = """Object Detection"""
|
| 88 |
|
| 89 |
# Create examples list from "examples/" directory
|
| 90 |
# example_list = [["examples/" + example] for example in os.listdir("examples")]
|
| 91 |
+
example_list = [["carplane.webp"]]
|
| 92 |
|
| 93 |
image_in = gr.components.Image(label="Upload an image")
|
| 94 |
image_out = gr.components.Image()
|
|
|
|
| 101 |
outputs=image_out,
|
| 102 |
title=title,
|
| 103 |
description=description,
|
| 104 |
+
examples=example_list
|
| 105 |
).launch()
|