multimodalart HF staff commited on
Commit
bcdfcef
1 Parent(s): cc7e093

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -34,7 +34,7 @@ pipe = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=
34
  MAX_SEED = np.iinfo(np.int32).max
35
 
36
  @spaces.GPU
37
- def infer(prompt, seed=1, randomize_seed=False, num_inference_steps=28, progress=gr.Progress(track_tqdm=True)):
38
  prompt_template = f"A side by side 4 frame image showing high quality consecutive stills from a looped gif animation moving from left to right. The scene has motion. The stills are of {prompt}"
39
  if randomize_seed:
40
  seed = random.randint(0, MAX_SEED)
@@ -122,6 +122,7 @@ with gr.Blocks(css=css) as demo:
122
  fn=infer,
123
  cache_examples="lazy"
124
  )
 
125
  gr.on(
126
  triggers=[run_button.click, prompt.submit],
127
  fn = infer,
 
34
  MAX_SEED = np.iinfo(np.int32).max
35
 
36
  @spaces.GPU
37
+ def infer(prompt, seed=1, randomize_seed=False, num_inference_steps=28):
38
  prompt_template = f"A side by side 4 frame image showing high quality consecutive stills from a looped gif animation moving from left to right. The scene has motion. The stills are of {prompt}"
39
  if randomize_seed:
40
  seed = random.randint(0, MAX_SEED)
 
122
  fn=infer,
123
  cache_examples="lazy"
124
  )
125
+
126
  gr.on(
127
  triggers=[run_button.click, prompt.submit],
128
  fn = infer,