Spaces:
Running
on
Zero
Running
on
Zero
change zero gpu duration allocation
Browse files
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=
|
| 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("
|
| 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,
|