Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -465,12 +465,12 @@ def generate_30(
|
|
465 |
images = []
|
466 |
timestamp = datetime.datetime.now().strftime("%Y%m%d_%H%M%S")
|
467 |
filename = pyx.uploadNote(prompt,num_inference_steps,guidance_scale,timestamp)
|
468 |
-
|
469 |
batch_options = options.copy()
|
470 |
rv_image = pipe(**batch_options).images[0]
|
471 |
sd_image_path = f"rv_B_{timestamp}.png"
|
472 |
rv_image.save(sd_image_path,optimize=False,compress_level=0)
|
473 |
-
|
474 |
torch.set_float32_matmul_precision("medium")
|
475 |
with torch.no_grad():
|
476 |
upscale = upscaler(rv_image, tiling=True, tile_width=256, tile_height=256)
|
|
|
465 |
images = []
|
466 |
timestamp = datetime.datetime.now().strftime("%Y%m%d_%H%M%S")
|
467 |
filename = pyx.uploadNote(prompt,num_inference_steps,guidance_scale,timestamp)
|
468 |
+
upload_to_ftp(filename)
|
469 |
batch_options = options.copy()
|
470 |
rv_image = pipe(**batch_options).images[0]
|
471 |
sd_image_path = f"rv_B_{timestamp}.png"
|
472 |
rv_image.save(sd_image_path,optimize=False,compress_level=0)
|
473 |
+
upload_to_ftp(sd_image_path)
|
474 |
torch.set_float32_matmul_precision("medium")
|
475 |
with torch.no_grad():
|
476 |
upscale = upscaler(rv_image, tiling=True, tile_width=256, tile_height=256)
|