Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -24,14 +24,16 @@ pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-dev",
|
|
24 |
pipe.to(DEVICE)
|
25 |
|
26 |
def get_examples():
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
|
|
|
|
35 |
def reset_do_inversion():
|
36 |
return True
|
37 |
|
@@ -265,7 +267,7 @@ based on the implementations of [@raven38](https://github.com/raven38) & [@DarkM
|
|
265 |
)
|
266 |
|
267 |
gr.Examples(
|
268 |
-
examples=get_examples,
|
269 |
inputs=[input_image, prompt,eta,gamma,start_timestep, stop_timestep, num_inversion_steps, num_inference_steps, seed, randomize_seed, eta_decay, decay_power, enable_hyper_flux ],
|
270 |
outputs=[result],
|
271 |
|
|
|
24 |
pipe.to(DEVICE)
|
25 |
|
26 |
def get_examples():
|
27 |
+
case = [
|
28 |
+
[Image.open("metal.png"), "a dragon, in 3d melting gold metal",0.9, 0.5, 0, 5, 28, 28, 0, False,False, 2, False,Image.open("dragon.png") ],
|
29 |
+
[Image.open("doll.png"), "anime illustration",0.9, 0.5, 0, 6, 28, 28, 0, False, False, 2, False ,Image.open("anime.png")],
|
30 |
+
[Image.open("doll.png"), "raccoon, made of yarn",0.9, 0.5, 0, 4, 28, 28, 0, False, False, 2, False , Image.open("raccoon.png")],
|
31 |
+
[Image.open("cat.jpg"), "a parrot", 0.9 ,0.5,2, 8,28, 28,0, False , False, 1, False,Image.open("parrot.png")],
|
32 |
+
[Image.open("cat.jpg"), "a tiger", 0.9 ,0.5,0, 4,8, 8,789385745, False , False, 1, True,Image.open("tiger.png")],
|
33 |
+
[Image.open("metal.png"),"a dragon, in 3d melting gold metal",0.9, 0.5, 0, 4, 8, 8, 789385745, False,True, 2, True , Image.open("dragon.png")],
|
34 |
+
]
|
35 |
+
return case
|
36 |
+
|
37 |
def reset_do_inversion():
|
38 |
return True
|
39 |
|
|
|
267 |
)
|
268 |
|
269 |
gr.Examples(
|
270 |
+
examples=get_examples(),
|
271 |
inputs=[input_image, prompt,eta,gamma,start_timestep, stop_timestep, num_inversion_steps, num_inference_steps, seed, randomize_seed, eta_decay, decay_power, enable_hyper_flux ],
|
272 |
outputs=[result],
|
273 |
|