Update app.py
Browse files
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",
|
| 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):
|