Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ repo = "stabilityai/stable-diffusion-3-medium-diffusers"
|
|
12 |
pipe = StableDiffusion3Pipeline.from_pretrained(repo, torch_dtype=torch.float16).to(device)
|
13 |
|
14 |
MAX_SEED = np.iinfo(np.int32).max
|
15 |
-
MAX_IMAGE_SIZE =
|
16 |
|
17 |
@spaces.GPU
|
18 |
def infer(prompt, negative_prompt, seed, randomize_seed, width, height, guidance_scale, num_inference_steps, progress=gr.Progress(track_tqdm=True)):
|
|
|
12 |
pipe = StableDiffusion3Pipeline.from_pretrained(repo, torch_dtype=torch.float16).to(device)
|
13 |
|
14 |
MAX_SEED = np.iinfo(np.int32).max
|
15 |
+
MAX_IMAGE_SIZE = 2048
|
16 |
|
17 |
@spaces.GPU
|
18 |
def infer(prompt, negative_prompt, seed, randomize_seed, width, height, guidance_scale, num_inference_steps, progress=gr.Progress(track_tqdm=True)):
|