Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,7 +15,7 @@ pipe = DiffusionPipeline.from_pretrained(model_repo_id, torch_dtype=torch_dtype)
|
|
| 15 |
pipe = pipe.to(device)
|
| 16 |
|
| 17 |
MAX_SEED = np.iinfo(np.int32).max
|
| 18 |
-
MAX_IMAGE_SIZE =
|
| 19 |
|
| 20 |
def truncate_text(text, max_tokens=77):
|
| 21 |
"""
|
|
@@ -34,8 +34,8 @@ def infer(
|
|
| 34 |
negative_prompt="",
|
| 35 |
seed=42,
|
| 36 |
randomize_seed=False,
|
| 37 |
-
width=
|
| 38 |
-
height=
|
| 39 |
guidance_scale=4.5,
|
| 40 |
num_inference_steps=40,
|
| 41 |
progress=gr.Progress(track_tqdm=True),
|
|
|
|
| 15 |
pipe = pipe.to(device)
|
| 16 |
|
| 17 |
MAX_SEED = np.iinfo(np.int32).max
|
| 18 |
+
MAX_IMAGE_SIZE = 1024
|
| 19 |
|
| 20 |
def truncate_text(text, max_tokens=77):
|
| 21 |
"""
|
|
|
|
| 34 |
negative_prompt="",
|
| 35 |
seed=42,
|
| 36 |
randomize_seed=False,
|
| 37 |
+
width=1024,
|
| 38 |
+
height=1024,
|
| 39 |
guidance_scale=4.5,
|
| 40 |
num_inference_steps=40,
|
| 41 |
progress=gr.Progress(track_tqdm=True),
|