Spaces:
Runtime error
Runtime error
Update app.py
Browse files34 unmodified lines35363738394014 unmodified lines555657585960612 unmodified lines64656667686970717234 unmodified lines@spaces.GPU()def infer(prompt, seed=42, randomize_seed=False, width=1024, height=1024, num_inference_steps=4, progress=gr.Progress(track_tqdm=True)):generator = torch.Generator().manual_seed(seed)image = pipe(prompt = prompt,14 unmodified linescss="""#col-container {margin: 0 auto;max-width: 520px;}"""2 unmodified lineswith gr.Column(elem_id="col-container"):gr.Markdown(f"""# FLUX.1 Schnell12B parameters rectified flow transformer distilled from [FLUX.1 Pro](https://blackforestlabs.ai/) for fast 4 step image generation[[blog](https://blackforestlabs.ai/2024/07/31/announcing-black-forest-labs/)] [[model](https://black-forest-labs/FLUX.1-schnell)]]""")with gr.Row():34 unmodified lines353637383940414214 unmodified lines575859606162632 unmodified lines666768697071727334 unmodified lines@spaces.GPU()def infer(prompt, seed=42, randomize_seed=False, width=1024, height=1024, num_inference_steps=4, progress=gr.Progress(track_tqdm=True)):if randomize_seed:seed = random.randint(0, MAX_SEED)generator = torch.Generator().manual_seed(seed)image = pipe(prompt = prompt,14 unmodified linescss="""#col-container {margin: 0 auto;max-width: 550px;}"""2 unmodified lineswith gr.Column(elem_id="col-container"):gr.Markdown(f"""# FLUX.1 Schnell12B param rectified flow transformer distilled from [FLUX.1 Pro](https://blackforestlabs.ai/) for 4 step generation[[blog](https://blackforestlabs.ai/2024/07/31/announcing-black-forest-labs/) [model](https://black-forest-labs/FLUX.1-schnell)]""")with gr.Row():
app.py+5-4