KingNish ehristoforu commited on
Commit
e04fd6c
1 Parent(s): 7f10b7b

Update app.py (#5)

Browse files

- Update app.py (75567509fcefe0d4099fbd52620ab298ce14b380)


Co-authored-by: Evgeniy Hristoforu <ehristoforu@users.noreply.huggingface.co>

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()