cbensimon HF staff commited on
Commit
d29a241
1 Parent(s): d7d24e9

Enable ZeroGPU queue (beta feature)

Browse files

Instead of the "No GPU is currently available", visitors should see a "Waiting for a GPU to become available" message if not GPU is available at the moment

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -56,7 +56,7 @@ def randomize_seed_fn(seed: int, randomize_seed: bool) -> int:
56
  return seed
57
 
58
 
59
- @spaces.GPU
60
  def generate(
61
  prompt: str,
62
  negative_prompt: str = "",
 
56
  return seed
57
 
58
 
59
+ @spaces.GPU(enable_queue=True)
60
  def generate(
61
  prompt: str,
62
  negative_prompt: str = "",