Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -163,39 +163,6 @@ with gr.Blocks(
|
|
| 163 |
fn=lambda: None,
|
| 164 |
)
|
| 165 |
|
| 166 |
-
# Examples
|
| 167 |
-
gr.Markdown("### Examples")
|
| 168 |
-
examples = [
|
| 169 |
-
[
|
| 170 |
-
"http://images.cocodataset.org/val2017/000000077595.jpg",
|
| 171 |
-
"ear"
|
| 172 |
-
],
|
| 173 |
-
[
|
| 174 |
-
"http://images.cocodataset.org/val2017/000000039769.jpg",
|
| 175 |
-
"cat"
|
| 176 |
-
],
|
| 177 |
-
[
|
| 178 |
-
"http://images.cocodataset.org/val2017/000000001247.jpg",
|
| 179 |
-
"person"
|
| 180 |
-
],
|
| 181 |
-
[
|
| 182 |
-
"http://images.cocodataset.org/val2017/000000521315.jpg",
|
| 183 |
-
"bicycle"
|
| 184 |
-
],
|
| 185 |
-
[
|
| 186 |
-
"http://images.cocodataset.org/val2017/000000029369.jpg",
|
| 187 |
-
"dog"
|
| 188 |
-
]
|
| 189 |
-
]
|
| 190 |
-
gr.Examples(
|
| 191 |
-
examples=examples,
|
| 192 |
-
inputs=[image_input, text_input],
|
| 193 |
-
fn=segment_example,
|
| 194 |
-
outputs=[image_output, info_output],
|
| 195 |
-
cache_examples=False,
|
| 196 |
-
examples_per_page=10,
|
| 197 |
-
label="Try these COCO examples (URLs auto-load)"
|
| 198 |
-
)
|
| 199 |
|
| 200 |
gr.Markdown(
|
| 201 |
"""
|
|
|
|
| 163 |
fn=lambda: None,
|
| 164 |
)
|
| 165 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 166 |
|
| 167 |
gr.Markdown(
|
| 168 |
"""
|