Spaces:
Runtime error
Runtime error
measmonysuon
commited on
Commit
•
81c20ce
1
Parent(s):
cf2dec3
Update app.py
Browse files
app.py
CHANGED
@@ -38,15 +38,15 @@ def generate_image(prompt, resolution_key, style=DEFAULT_STYLE):
|
|
38 |
f"{BASE_URL}/run",
|
39 |
headers=headers,
|
40 |
json={
|
41 |
-
prompt
|
42 |
-
negative_prompt
|
43 |
-
use_negative_prompt
|
44 |
-
style
|
45 |
-
seed
|
46 |
-
width
|
47 |
-
height
|
48 |
-
guidance_scale
|
49 |
-
randomize_seed
|
50 |
}
|
51 |
)
|
52 |
logger.info("Image generation successful.")
|
|
|
38 |
f"{BASE_URL}/run",
|
39 |
headers=headers,
|
40 |
json={
|
41 |
+
prompt:full_prompt,
|
42 |
+
negative_prompt:"(deformed, distorted, disfigured:1.3), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, (mutated hands and fingers:1.4), disconnected limbs, mutation, mutated, ugly, disgusting, blurry, amputation",
|
43 |
+
use_negative_prompt:True,
|
44 |
+
style:style,
|
45 |
+
seed:0,
|
46 |
+
width:width,
|
47 |
+
height:height,
|
48 |
+
guidance_scale:5,
|
49 |
+
randomize_seed:True
|
50 |
}
|
51 |
)
|
52 |
logger.info("Image generation successful.")
|