smartdigitalnetworks commited on
Commit
727f812
·
verified ·
1 Parent(s): b78161e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -27,7 +27,7 @@ img_pipe = StableDiffusionImg2ImgPipeline.from_pretrained(
27
  )
28
  img_pipe.to(device)
29
 
30
- source_img = gr.Image(tool="sketch", source="upload", type="filepath", label="Add Image for Text Guided Editing and Sketch")
31
  gallery = gr.Gallery(label="Generated images", show_label=False, elem_id="gallery").style(grid=[1], height="auto")
32
 
33
  def resize(value,img):
 
27
  )
28
  img_pipe.to(device)
29
 
30
+ source_img = gr.Image(tool="sketch", sources=["upload", "webcam", "clipboard"], type="filepath", label="Add Image for Text Guided Editing and Sketch")
31
  gallery = gr.Gallery(label="Generated images", show_label=False, elem_id="gallery").style(grid=[1], height="auto")
32
 
33
  def resize(value,img):