Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -111,13 +111,12 @@ def king(type ,
|
|
111 |
generator = generator,
|
112 |
).images[0]
|
113 |
else:
|
114 |
-
image =
|
115 |
negative_prompt=negative_prompt,
|
116 |
guidance_scale = guidance_scale,
|
117 |
num_inference_steps = steps,
|
118 |
-
width = width, height = height
|
119 |
-
|
120 |
-
).images
|
121 |
|
122 |
refine = refiner( prompt=f"{instruction}, 4k, hd, high quality, masterpiece",
|
123 |
negative_prompt = negative_prompt,
|
|
|
111 |
generator = generator,
|
112 |
).images[0]
|
113 |
else:
|
114 |
+
image = client_image.text_to_image( prompt = f"{instruction} , {generator}",
|
115 |
negative_prompt=negative_prompt,
|
116 |
guidance_scale = guidance_scale,
|
117 |
num_inference_steps = steps,
|
118 |
+
width = width, height = height
|
119 |
+
)
|
|
|
120 |
|
121 |
refine = refiner( prompt=f"{instruction}, 4k, hd, high quality, masterpiece",
|
122 |
negative_prompt = negative_prompt,
|