Niansuh commited on
Commit
05f674c
1 Parent(s): 51a92d7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -47,7 +47,7 @@ def randomize_seed_fn(seed: int, randomize_seed: bool) -> int:
47
  seed = random.randint(0, MAX_SEED)
48
  return seed
49
 
50
- @spaces.GPU(duration=30, queue=False)
51
  def generate(
52
  prompt: str,
53
  negative_prompt: str = "",
@@ -217,4 +217,4 @@ with gr.Blocks(css=css) as demo:
217
  )
218
 
219
  if __name__ == "__main__":
220
- demo.queue(max_size=20).launch()
 
47
  seed = random.randint(0, MAX_SEED)
48
  return seed
49
 
50
+ @spaces.GPU(duration=35, enable_queue=True)
51
  def generate(
52
  prompt: str,
53
  negative_prompt: str = "",
 
217
  )
218
 
219
  if __name__ == "__main__":
220
+ demo.queue(max_size=50).launch()