Spaces:
Runtime error
Runtime error
Added explanation to the demo (it's super awesome!)
Browse files
app.py
CHANGED
|
@@ -302,7 +302,19 @@ if __name__ == "__main__":
|
|
| 302 |
if not args.no_gradio_queue:
|
| 303 |
block = block.queue()
|
| 304 |
|
| 305 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 306 |
with gr.Row():
|
| 307 |
with gr.Column():
|
| 308 |
input_image = gr.Image(
|
|
|
|
| 302 |
if not args.no_gradio_queue:
|
| 303 |
block = block.queue()
|
| 304 |
|
| 305 |
+
css = """
|
| 306 |
+
#mkd {
|
| 307 |
+
height: 500px;
|
| 308 |
+
overflow: auto;
|
| 309 |
+
border: 1px solid #ccc;
|
| 310 |
+
}
|
| 311 |
+
"""
|
| 312 |
+
|
| 313 |
+
with gr.Blocks(css=css) as demo:
|
| 314 |
+
|
| 315 |
+
gr.HTML("<h1><center>Grounded Segment Anything<center><h1>")
|
| 316 |
+
gr.HTML("<h3><center>This is the demo for [Grounded Segment Anything](https://github.com/IDEA-Research/Grounded-Segment-Anything), which combines Segment Anything Model with Grounding DINO.</h3>")
|
| 317 |
+
|
| 318 |
with gr.Row():
|
| 319 |
with gr.Column():
|
| 320 |
input_image = gr.Image(
|