Commit ·
2137a28
1
Parent(s): e01757b
Allow cold four-step edits to finish on ZeroGPU
Browse files
app.py
CHANGED
|
@@ -114,7 +114,7 @@ def use_output_as_input(output_images):
|
|
| 114 |
|
| 115 |
|
| 116 |
# --- Main Inference Function (with hardcoded negative prompt) ---
|
| 117 |
-
@spaces.GPU(duration=
|
| 118 |
def infer(
|
| 119 |
image_1,
|
| 120 |
image_2,
|
|
@@ -159,7 +159,8 @@ def infer(
|
|
| 159 |
height, width = None, None
|
| 160 |
print(
|
| 161 |
f"Starting generation: seed={seed}, steps={num_inference_steps}, "
|
| 162 |
-
f"guidance={true_guidance_scale}, size={width}x{height}, inputs={len(pil_images)}"
|
|
|
|
| 163 |
)
|
| 164 |
|
| 165 |
# Generate the image
|
|
|
|
| 114 |
|
| 115 |
|
| 116 |
# --- Main Inference Function (with hardcoded negative prompt) ---
|
| 117 |
+
@spaces.GPU(duration=180)
|
| 118 |
def infer(
|
| 119 |
image_1,
|
| 120 |
image_2,
|
|
|
|
| 159 |
height, width = None, None
|
| 160 |
print(
|
| 161 |
f"Starting generation: seed={seed}, steps={num_inference_steps}, "
|
| 162 |
+
f"guidance={true_guidance_scale}, size={width}x{height}, inputs={len(pil_images)}",
|
| 163 |
+
flush=True,
|
| 164 |
)
|
| 165 |
|
| 166 |
# Generate the image
|