moose Claude Opus 4.7 (1M context) commited on
Commit
7654ca1
·
1 Parent(s): 1543d6f

Lower @spaces.GPU duration from 300s to 60s

Browse files

The duration arg is a per-call quota guard, not a charge — actual time
used is what gets billed. Setting it at 300s was right at ZeroGPU's
free-user single-call limit, which blocked free users from the space.

Typical Qwen edit lands ~13s wall-clock from the client side (less
inside the GPU function once you strip queue + network), so 60s leaves
~5x safety buffer for slower edits while unblocking free users.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -138,7 +138,7 @@ def use_output_as_input(output_images):
138
  return output_images
139
 
140
  # --- Main Inference Function (with hardcoded negative prompt) ---
141
- @spaces.GPU(duration=300)
142
  def infer(
143
  images,
144
  prompt,
 
138
  return output_images
139
 
140
  # --- Main Inference Function (with hardcoded negative prompt) ---
141
+ @spaces.GPU(duration=60)
142
  def infer(
143
  images,
144
  prompt,