inteligenciamilgrau
commited on
Commit
•
d8699d2
1
Parent(s):
a0cf603
Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ pipe = DiffusionPipeline.from_pretrained(model_repo_id, torch_dtype=torch_dtype)
|
|
18 |
pipe = pipe.to(device)
|
19 |
|
20 |
MAX_SEED = np.iinfo(np.int32).max
|
21 |
-
MAX_IMAGE_SIZE =
|
22 |
|
23 |
#@spaces.GPU #[uncomment to use ZeroGPU]
|
24 |
def infer(prompt, negative_prompt, seed, randomize_seed, width, height, guidance_scale, num_inference_steps, progress=gr.Progress(track_tqdm=True)):
|
@@ -140,4 +140,4 @@ with gr.Blocks(css=css) as demo:
|
|
140 |
outputs = [result, seed]
|
141 |
)
|
142 |
|
143 |
-
demo.queue().launch(
|
|
|
18 |
pipe = pipe.to(device)
|
19 |
|
20 |
MAX_SEED = np.iinfo(np.int32).max
|
21 |
+
MAX_IMAGE_SIZE = 512
|
22 |
|
23 |
#@spaces.GPU #[uncomment to use ZeroGPU]
|
24 |
def infer(prompt, negative_prompt, seed, randomize_seed, width, height, guidance_scale, num_inference_steps, progress=gr.Progress(track_tqdm=True)):
|
|
|
140 |
outputs = [result, seed]
|
141 |
)
|
142 |
|
143 |
+
demo.queue().launch()
|