Update app.py
Browse files
app.py
CHANGED
@@ -141,7 +141,7 @@ def infer(
|
|
141 |
).images[0]
|
142 |
timestamp = datetime.datetime.now().strftime("%Y%m%d_%H%M%S")
|
143 |
rv_path = f"sd35_{timestamp}.png"
|
144 |
-
sd_image
|
145 |
upload_to_ftp(rv_path)
|
146 |
else:
|
147 |
print('-- generating image --')
|
|
|
141 |
).images[0]
|
142 |
timestamp = datetime.datetime.now().strftime("%Y%m%d_%H%M%S")
|
143 |
rv_path = f"sd35_{timestamp}.png"
|
144 |
+
sd_image.save(rv_path,optimize=False,compress_level=0)
|
145 |
upload_to_ftp(rv_path)
|
146 |
else:
|
147 |
print('-- generating image --')
|