Rename app_flux.py to app.py
Browse files- app_flux.py → app.py +1 -1
app_flux.py → app.py
RENAMED
@@ -22,7 +22,7 @@ MAX_IMAGE_SIZE = 2048
|
|
22 |
pipe.flux_pipe_call_that_returns_an_iterable_of_images = flux_pipe_call_that_returns_an_iterable_of_images.__get__(pipe)
|
23 |
|
24 |
@spaces.GPU(duration=75)
|
25 |
-
def infer(prompt, seed=42, randomize_seed=False, width=
|
26 |
if randomize_seed:
|
27 |
seed = random.randint(0, MAX_SEED)
|
28 |
generator = torch.Generator().manual_seed(seed)
|
|
|
22 |
pipe.flux_pipe_call_that_returns_an_iterable_of_images = flux_pipe_call_that_returns_an_iterable_of_images.__get__(pipe)
|
23 |
|
24 |
@spaces.GPU(duration=75)
|
25 |
+
def infer(prompt, seed=42, randomize_seed=False, width=2048, height=1024, guidance_scale=3.5, num_inference_steps=28, progress=gr.Progress(track_tqdm=True)):
|
26 |
if randomize_seed:
|
27 |
seed = random.randint(0, MAX_SEED)
|
28 |
generator = torch.Generator().manual_seed(seed)
|