Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,13 +8,11 @@ from PIL import Image
|
|
| 8 |
from diffusers import FluxKontextPipeline
|
| 9 |
from diffusers.utils import load_image
|
| 10 |
|
| 11 |
-
MAX_SEED = np.iinfo(np.int32).max
|
| 12 |
-
|
| 13 |
pipe = FluxKontextPipeline.from_pretrained("black-forest-labs/FLUX.1-Kontext-dev", torch_dtype=torch.bfloat16).to("cuda")
|
| 14 |
|
| 15 |
seed=42
|
| 16 |
guidance_scale=2.5
|
| 17 |
-
steps=28
|
| 18 |
|
| 19 |
@spaces.GPU
|
| 20 |
def infer(input_image, prompt, progress=gr.Progress(track_tqdm=True)):
|
|
|
|
| 8 |
from diffusers import FluxKontextPipeline
|
| 9 |
from diffusers.utils import load_image
|
| 10 |
|
|
|
|
|
|
|
| 11 |
pipe = FluxKontextPipeline.from_pretrained("black-forest-labs/FLUX.1-Kontext-dev", torch_dtype=torch.bfloat16).to("cuda")
|
| 12 |
|
| 13 |
seed=42
|
| 14 |
guidance_scale=2.5
|
| 15 |
+
steps=28
|
| 16 |
|
| 17 |
@spaces.GPU
|
| 18 |
def infer(input_image, prompt, progress=gr.Progress(track_tqdm=True)):
|