Spaces:
Runtime error
Runtime error
modify prompt
Browse files
app.py
CHANGED
|
@@ -13,11 +13,12 @@ pipe = StableDiffusionPipeline.from_single_file(
|
|
| 13 |
)
|
| 14 |
|
| 15 |
num_images_per_prompt = 4
|
| 16 |
-
|
| 17 |
|
| 18 |
negative_prompt = '(nsfw:1.3),(Nude:1.3),(Naked:1.3),low quality, blurry, bad anatomy, worst quality, text, watermark, normal quality, ugly, signature, lowres, deformed, disfigured, cropped, jpeg artifacts, error, \
|
| 19 |
mutation, logo, watermark,text, logo,contact, error, blurry, cropped, username, artist name, (worst quality, low quality:1.4),monochrome,'
|
| 20 |
def inference(prompt,ref_image):
|
|
|
|
| 21 |
image = pipe(
|
| 22 |
prompt=prompt,
|
| 23 |
negative_prompt=negative_prompt,
|
|
|
|
| 13 |
)
|
| 14 |
|
| 15 |
num_images_per_prompt = 4
|
| 16 |
+
positive_prompt = 'Modern Elegance:Explore the seamless blend of sleek lines, minimalist aesthetics, and cutting-edge design in modern interior decor'
|
| 17 |
|
| 18 |
negative_prompt = '(nsfw:1.3),(Nude:1.3),(Naked:1.3),low quality, blurry, bad anatomy, worst quality, text, watermark, normal quality, ugly, signature, lowres, deformed, disfigured, cropped, jpeg artifacts, error, \
|
| 19 |
mutation, logo, watermark,text, logo,contact, error, blurry, cropped, username, artist name, (worst quality, low quality:1.4),monochrome,'
|
| 20 |
def inference(prompt,ref_image):
|
| 21 |
+
prompt += positive_prompt
|
| 22 |
image = pipe(
|
| 23 |
prompt=prompt,
|
| 24 |
negative_prompt=negative_prompt,
|