Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -52,7 +52,7 @@ def calculate_optimal_dimensions(image: Image.Image):
|
|
52 |
|
53 |
return width, height
|
54 |
|
55 |
-
@spaces.GPU
|
56 |
def infer(edit_images, prompt, seed=42, randomize_seed=False, width=1024, height=1024, guidance_scale=3.5, num_inference_steps=28, progress=gr.Progress(track_tqdm=True)):
|
57 |
image = edit_images["background"]
|
58 |
width, height = calculate_optimal_dimensions(image)
|
|
|
52 |
|
53 |
return width, height
|
54 |
|
55 |
+
@spaces.GPU(duration=150)
|
56 |
def infer(edit_images, prompt, seed=42, randomize_seed=False, width=1024, height=1024, guidance_scale=3.5, num_inference_steps=28, progress=gr.Progress(track_tqdm=True)):
|
57 |
image = edit_images["background"]
|
58 |
width, height = calculate_optimal_dimensions(image)
|