geshang commited on
Commit
8fddbd7
·
verified ·
1 Parent(s): 500db39

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -11
app.py CHANGED
@@ -338,17 +338,17 @@ with gr.Blocks(title="Seg-R1") as demo:
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)
 
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)