Spaces:
Running
on
Zero
Running
on
Zero
Update app_v4.py
Browse files
app_v4.py
CHANGED
|
@@ -149,7 +149,7 @@ def generate_focus(control_image, focus_list):
|
|
| 149 |
print(f"Error generating focus: {e}")
|
| 150 |
return "highly detailed photo, raw photography.", "Original Image Dimensions: N/A"
|
| 151 |
|
| 152 |
-
@spaces.GPU(duration=
|
| 153 |
@torch.no_grad()
|
| 154 |
def generate_image(prompt, scale, steps, control_image, controlnet_conditioning_scale, guidance_scale, seed, guidance_end):
|
| 155 |
generator = torch.Generator().manual_seed(seed)
|
|
|
|
| 149 |
print(f"Error generating focus: {e}")
|
| 150 |
return "highly detailed photo, raw photography.", "Original Image Dimensions: N/A"
|
| 151 |
|
| 152 |
+
@spaces.GPU(duration=12, progress=gr.Progress(track_tqdm=True))
|
| 153 |
@torch.no_grad()
|
| 154 |
def generate_image(prompt, scale, steps, control_image, controlnet_conditioning_scale, guidance_scale, seed, guidance_end):
|
| 155 |
generator = torch.Generator().manual_seed(seed)
|