nuwandaa commited on
Commit
4ef7379
·
verified ·
1 Parent(s): e148db0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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)