Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -21,9 +21,13 @@ MAX_IMAGE_SIZE = 2048
|
|
21 |
pipe.flux_pipe_call_that_returns_an_iterable_of_images = flux_pipe_call_that_returns_an_iterable_of_images.__get__(pipe)
|
22 |
|
23 |
@spaces.GPU(duration=25)
|
24 |
-
def infer(prompt, seed=42, randomize_seed=True, width=768, height=768, guidance_scale=4.5, num_inference_steps=
|
25 |
"""
|
26 |
-
Generate
|
|
|
|
|
|
|
|
|
27 |
"""
|
28 |
if randomize_seed:
|
29 |
seed = random.randint(0, MAX_SEED)
|
@@ -121,7 +125,7 @@ FLUX.1 Krea [dev] model further tuned and customized with [Krea](https://krea.ai
|
|
121 |
minimum=1,
|
122 |
maximum=50,
|
123 |
step=1,
|
124 |
-
value=
|
125 |
)
|
126 |
|
127 |
gr.Examples(
|
|
|
21 |
pipe.flux_pipe_call_that_returns_an_iterable_of_images = flux_pipe_call_that_returns_an_iterable_of_images.__get__(pipe)
|
22 |
|
23 |
@spaces.GPU(duration=25)
|
24 |
+
def infer(prompt, seed=42, randomize_seed=True, width=768, height=768, guidance_scale=4.5, num_inference_steps=24, progress=gr.Progress(track_tqdm=True)):
|
25 |
"""
|
26 |
+
Generate natural, realistic professional-quality images using the Flux.1 Krea-Dev Image Generator, eliminating typical AI image artifacts. Specialized for, product photography, e-commerce visuals, concept art, fashion and beauty photography, stock images
|
27 |
+
|
28 |
+
Args:
|
29 |
+
prompt (str): "Detailed description emphasizing technical photography terms, specific lighting, and material textures. Include professional camera/lens specifications for photorealistic results.
|
30 |
+
|
31 |
"""
|
32 |
if randomize_seed:
|
33 |
seed = random.randint(0, MAX_SEED)
|
|
|
125 |
minimum=1,
|
126 |
maximum=50,
|
127 |
step=1,
|
128 |
+
value=24,
|
129 |
)
|
130 |
|
131 |
gr.Examples(
|