fffiloni commited on
Commit
f9973c1
·
verified ·
1 Parent(s): a38394c

donnot specify zero duration for FLUX

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -59,7 +59,7 @@ MAX_IMAGE_SIZE = 2048
59
 
60
  pipe.flux_pipe_call_that_returns_an_iterable_of_images = flux_pipe_call_that_returns_an_iterable_of_images.__get__(pipe)
61
 
62
- @spaces.GPU(duration=75)
63
  def infer_flux(prompt, seed=42, randomize_seed=True, width=1024, height=1024, guidance_scale=3.5, num_inference_steps=28, progress=gr.Progress(track_tqdm=True)):
64
  if randomize_seed:
65
  seed = random.randint(0, MAX_SEED)
 
59
 
60
  pipe.flux_pipe_call_that_returns_an_iterable_of_images = flux_pipe_call_that_returns_an_iterable_of_images.__get__(pipe)
61
 
62
+ @spaces.GPU
63
  def infer_flux(prompt, seed=42, randomize_seed=True, width=1024, height=1024, guidance_scale=3.5, num_inference_steps=28, progress=gr.Progress(track_tqdm=True)):
64
  if randomize_seed:
65
  seed = random.randint(0, MAX_SEED)