Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -706,7 +706,7 @@ class GuiSD:
|
|
| 706 |
def dynamic_gpu_duration(func, duration, *args):
|
| 707 |
|
| 708 |
# @torch.inference_mode()
|
| 709 |
-
@spaces.GPU(duration=duration)
|
| 710 |
def wrapped_func():
|
| 711 |
yield from func(*args)
|
| 712 |
|
|
|
|
| 706 |
def dynamic_gpu_duration(func, duration, *args):
|
| 707 |
|
| 708 |
# @torch.inference_mode()
|
| 709 |
+
@spaces.GPU(duration=(duration/1.5)) # https://pypi-browser.org/package/spaces/spaces-0.51.1-py3-none-any.whl/spaces/zero/configs.json#L18
|
| 710 |
def wrapped_func():
|
| 711 |
yield from func(*args)
|
| 712 |
|