alvarobartt HF staff commited on
Commit
0a94726
1 Parent(s): 5599d1f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -38,9 +38,9 @@ def inference(
38
 
39
  progress(0, "Starting image generation...")
40
 
41
- for i in range(1, steps + 1):
42
- if i % (steps // 10) == 0:
43
- progress(i / steps * 100, f"Processing step {i} of {steps}...")
44
 
45
  image = pipeline(
46
  prompt=prompt,
@@ -144,6 +144,8 @@ with gr.Blocks(css=css) as demo:
144
 
145
  gr.Examples(examples=examples, inputs=[prompt], outputs=[Image.open("./example.jpg")])
146
 
 
 
147
  gr.on(
148
  triggers=[run_button.click, prompt.submit],
149
  fn=inference,
 
38
 
39
  progress(0, "Starting image generation...")
40
 
41
+ for i in range(1, num_inference_steps + 1):
42
+ if i % (num_inference_steps // 10) == 0:
43
+ progress(i / num_inference_steps * 100, f"Processing step {i} of {num_inference_steps}...")
44
 
45
  image = pipeline(
46
  prompt=prompt,
 
144
 
145
  gr.Examples(examples=examples, inputs=[prompt], outputs=[Image.open("./example.jpg")])
146
 
147
+ gr.Markdown("Free of use, but both the dataset that FLUX has been fine-tuned on, as well as the FLUX.1-dev model are licensed under a non-commercial license.")
148
+
149
  gr.on(
150
  triggers=[run_button.click, prompt.submit],
151
  fn=inference,