Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -152,18 +152,7 @@ def infer(
|
|
| 152 |
image_path = f"sd35m_{seed}.png"
|
| 153 |
sd_image.save(image_path,optimize=False,compress_level=0)
|
| 154 |
upload_to_ftp(image_path)
|
| 155 |
-
|
| 156 |
-
prompt=f"{prompt}, high quality masterpiece, complex details",
|
| 157 |
-
negative_prompt = negative_prompt,
|
| 158 |
-
guidance_scale=7.5,
|
| 159 |
-
num_inference_steps=num_inference_steps,
|
| 160 |
-
image=sd_image,
|
| 161 |
-
generator=generator,
|
| 162 |
-
).images[0]
|
| 163 |
-
refine_path = f"refine_{seed}.png"
|
| 164 |
-
refine.save(refine_path,optimize=False,compress_level=0)
|
| 165 |
-
upload_to_ftp(refine_path)
|
| 166 |
-
return refine, seed, refine_path, enhanced_prompt
|
| 167 |
|
| 168 |
examples = [
|
| 169 |
"Astronaut in a jungle, cold color palette, muted colors, detailed, 8k",
|
|
|
|
| 152 |
image_path = f"sd35m_{seed}.png"
|
| 153 |
sd_image.save(image_path,optimize=False,compress_level=0)
|
| 154 |
upload_to_ftp(image_path)
|
| 155 |
+
return sd_image, seed, image_path, enhanced_prompt
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 156 |
|
| 157 |
examples = [
|
| 158 |
"Astronaut in a jungle, cold color palette, muted colors, detailed, 8k",
|