Spaces:
Sleeping
Sleeping
Commit
·
2d1fe2b
1
Parent(s):
2280f66
Update app.py
Browse files
app.py
CHANGED
|
@@ -87,7 +87,7 @@ description = """Upload an image and get the predicted 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 |
|
| 92 |
|
| 93 |
image_in = gr.components.Image(label="Upload an image")
|
|
@@ -101,5 +101,5 @@ gr.Interface(fn=model_inference,
|
|
| 101 |
outputs=image_out,
|
| 102 |
title=title,
|
| 103 |
description=description,
|
| 104 |
-
examples=example_list
|
| 105 |
).launch()
|
|
|
|
| 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")
|
|
|
|
| 101 |
outputs=image_out,
|
| 102 |
title=title,
|
| 103 |
description=description,
|
| 104 |
+
# examples=example_list
|
| 105 |
).launch()
|