Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -338,17 +338,17 @@ with gr.Blocks(title="Seg-R1") as demo:
|
|
338 |
outputs=[text_output, image_output]
|
339 |
)
|
340 |
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
|
353 |
if __name__ == "__main__":
|
354 |
demo.launch(server_name="0.0.0.0", server_port=7860)
|
|
|
338 |
outputs=[text_output, image_output]
|
339 |
)
|
340 |
|
341 |
+
gr.Examples(
|
342 |
+
examples=[
|
343 |
+
["imgs/cards.jpg", "Identify and segment the Ace of Spades."],
|
344 |
+
["imgs/painting.jpg", "Identify and segment the man an the house."],
|
345 |
+
["imgs/dogs.jpg", "Identify and segment the tongue of the dog."],
|
346 |
+
],
|
347 |
+
inputs=[image_input, text_input],
|
348 |
+
outputs=[text_output, image_output],
|
349 |
+
fn=run_pipeline,
|
350 |
+
cache_examples=True
|
351 |
+
)
|
352 |
|
353 |
if __name__ == "__main__":
|
354 |
demo.launch(server_name="0.0.0.0", server_port=7860)
|