merve HF staff commited on
Commit
159a2aa
1 Parent(s): 0e8e9e2

Added explanation to the demo (it's super awesome!)

Browse files
Files changed (1) hide show
  1. app.py +13 -1
app.py CHANGED
@@ -302,7 +302,19 @@ if __name__ == "__main__":
302
  if not args.no_gradio_queue:
303
  block = block.queue()
304
 
305
- with block:
 
 
 
 
 
 
 
 
 
 
 
 
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(