Spaces:
Runtime error
Runtime error
Commit
·
66c5f75
1
Parent(s):
ead0d6d
Update app.py
Browse files
app.py
CHANGED
@@ -27,4 +27,11 @@ def predict(source_img, prompt, negative_prompt):
|
|
27 |
|
28 |
title="SDXL 1.0 Inpainting CPU"
|
29 |
description="Inpainting with SDXL 1.0 <br />Warning: Slow process... ~10 min inference time.<br> <b>Please use square .png image as input, 512x512, 768x768, or 1024x1024</b>"
|
30 |
-
gr.Interface(fn=predict, inputs=[gr.Image(source="upload", type="numpy",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
|
28 |
title="SDXL 1.0 Inpainting CPU"
|
29 |
description="Inpainting with SDXL 1.0 <br />Warning: Slow process... ~10 min inference time.<br> <b>Please use square .png image as input, 512x512, 768x768, or 1024x1024</b>"
|
30 |
+
gr.Interface(fn=predict, inputs=[gr.Image(source="upload", type="numpy",
|
31 |
+
tool="sketch", elem_id="source_container"),
|
32 |
+
gr.Textbox(label='What you want the AI to Generate, 77 Token limit'),
|
33 |
+
gr.Textbox(label='What you Do Not want the AI to generate')],
|
34 |
+
outputs='image',
|
35 |
+
title=title,
|
36 |
+
description=description,
|
37 |
+
article = "Code Monkey: <a href=\"https://huggingface.co/Manjushri\">Manjushri</a>").launch(max_threads=True, debug=True)
|