Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -515,7 +515,7 @@ def on_highres_toggle(first_image, last_image, high_res):
|
|
| 515 |
w, h = RESOLUTIONS[tier][aspect]
|
| 516 |
return gr.update(value=w), gr.update(value=h)
|
| 517 |
|
| 518 |
-
def get_gpu_duration(
|
| 519 |
return int(gpu_duration)
|
| 520 |
|
| 521 |
@spaces.GPU(size="xlarge", duration=get_gpu_duration)
|
|
|
|
| 515 |
w, h = RESOLUTIONS[tier][aspect]
|
| 516 |
return gr.update(value=w), gr.update(value=h)
|
| 517 |
|
| 518 |
+
def get_gpu_duration(*args, gpu_duration=75.0, **kwargs):
|
| 519 |
return int(gpu_duration)
|
| 520 |
|
| 521 |
@spaces.GPU(size="xlarge", duration=get_gpu_duration)
|