abhishek HF staff commited on
Commit
a1593c2
1 Parent(s): 1ffaf77

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -0
app.py CHANGED
@@ -46,6 +46,17 @@ pipe.enable_xformers_memory_efficient_attention()
46
 
47
 
48
  with gr.Blocks() as demo:
 
 
 
 
 
 
 
 
 
 
 
49
  selected_pixels = gr.State([])
50
  with gr.Row():
51
  input_img = gr.Image(label="Input")
 
46
 
47
 
48
  with gr.Blocks() as demo:
49
+ gr.Markdown("# StableSAM: Stable Diffusion + Segment Anything Model")
50
+ gr.Markdown(
51
+ """
52
+ To try the demo, upload an image and select object(s) you want to inpaint.
53
+ Write a prompt & a negative prompt to control the inpainting.
54
+ Click on the "Submit" button to inpaint the selected object(s).
55
+ Check "Background" to inpaint the background instead of the selected object(s).
56
+
57
+ If the demo is slow, clone the space to your own HF account and run on a GPU.
58
+ """
59
+ )
60
  selected_pixels = gr.State([])
61
  with gr.Row():
62
  input_img = gr.Image(label="Input")