Spaces:
Running
Running
update app.py
Browse files
app.py
CHANGED
@@ -447,7 +447,7 @@ with gr.Blocks(js=scripts, css=css, theme='gstaff/xkcd') as demo:
|
|
447 |
value=0.5 , interactive=True, step=0.05, minimum=0, maximum=1)
|
448 |
|
449 |
with gr.Row():
|
450 |
-
segment_btn = gr.Button( 'Segment it
|
451 |
segment_btn.click(fn=run, inputs=[in_canvas_image , in_textbox , in_slider ], outputs=[out_image])
|
452 |
gallery_label = gr.HTML("<h3 class='black-text'> <span class='black-text underline'>Gallery:</span> <span style='color: grey;'>you can click on any of the example sketches below to start segmenting them (or even drawing over them)</span> </div>")
|
453 |
|
@@ -505,6 +505,6 @@ with gr.Blocks(js=scripts, css=css, theme='gstaff/xkcd') as demo:
|
|
505 |
# cache_examples=True,
|
506 |
)
|
507 |
|
508 |
-
gr.HTML("<h5 class='black-text' style='text-align: left;'
|
509 |
-
gr.HTML("<h5 class='black-text' style='text-align: left;'
|
510 |
demo.launch(share=False)
|
|
|
447 |
value=0.5 , interactive=True, step=0.05, minimum=0, maximum=1)
|
448 |
|
449 |
with gr.Row():
|
450 |
+
segment_btn = gr.Button( 'Segment it¹ !' , elem_classes=["white-bg", "gray-border" , "border-radius" ,"own-shadow" , 'bold' , 'mt-mb-1' ] , size="sm")
|
451 |
segment_btn.click(fn=run, inputs=[in_canvas_image , in_textbox , in_slider ], outputs=[out_image])
|
452 |
gallery_label = gr.HTML("<h3 class='black-text'> <span class='black-text underline'>Gallery:</span> <span style='color: grey;'>you can click on any of the example sketches below to start segmenting them (or even drawing over them)</span> </div>")
|
453 |
|
|
|
505 |
# cache_examples=True,
|
506 |
)
|
507 |
|
508 |
+
gr.HTML("<h5 class='black-text' style='text-align: left;'>¹This demo runs on a basic 2 vCPU. For instant segmentation, use a commercial Nvidia RTX 3090 GPU.</h5>")
|
509 |
+
gr.HTML("<h5 class='black-text' style='text-align: left;'>¹We compare the entire caption to the scene sketch and threshold most similar pixels, without extracting individual classes.</h5>")
|
510 |
demo.launch(share=False)
|