fffiloni commited on
Commit
621dc4e
·
verified ·
1 Parent(s): b48f8f9

change zero gpu duration allocation

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -168,7 +168,7 @@ def preview_image_and_mask(image, width, height, overlap_percentage, resize_opti
168
 
169
  return preview
170
 
171
- @spaces.GPU(duration=24)
172
  def infer(
173
  image,
174
  width,
@@ -212,7 +212,7 @@ def infer(
212
  - The intermediate ControlNet input image (showing the masked area).
213
  - The final generated image with the inpainted region.
214
  """
215
- gr.Info("24 seconds will be used from your daily ZeroGPU time credits.")
216
  background, mask = prepare_image_and_mask(
217
  image, width, height, overlap_percentage,
218
  resize_option, custom_resize_percentage, alignment,
 
168
 
169
  return preview
170
 
171
+ @spaces.GPU(duration=10)
172
  def infer(
173
  image,
174
  width,
 
212
  - The intermediate ControlNet input image (showing the masked area).
213
  - The final generated image with the inpainted region.
214
  """
215
+ gr.Info("10 seconds will be used from your daily ZeroGPU time credits.")
216
  background, mask = prepare_image_and_mask(
217
  image, width, height, overlap_percentage,
218
  resize_option, custom_resize_percentage, alignment,