Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -148,7 +148,7 @@ def infer(
|
|
148 |
outputs = model.generate(
|
149 |
input_ids=input_ids,
|
150 |
attention_mask=attention_mask,
|
151 |
-
max_new_tokens=
|
152 |
temperature=0.2,
|
153 |
top_p=0.9,
|
154 |
do_sample=True,
|
@@ -211,7 +211,7 @@ def infer(
|
|
211 |
height=height,
|
212 |
# latents=None,
|
213 |
generator=generator,
|
214 |
-
max_sequence_length=
|
215 |
).images[0]
|
216 |
print('-- got image --')
|
217 |
image_path = f"sd35m_{seed}.png"
|
|
|
148 |
outputs = model.generate(
|
149 |
input_ids=input_ids,
|
150 |
attention_mask=attention_mask,
|
151 |
+
max_new_tokens=512,
|
152 |
temperature=0.2,
|
153 |
top_p=0.9,
|
154 |
do_sample=True,
|
|
|
211 |
height=height,
|
212 |
# latents=None,
|
213 |
generator=generator,
|
214 |
+
max_sequence_length=512
|
215 |
).images[0]
|
216 |
print('-- got image --')
|
217 |
image_path = f"sd35m_{seed}.png"
|