Spaces:
Runtime error
Runtime error
Update server.py
Browse files
server.py
CHANGED
@@ -51,7 +51,7 @@ def generate(prompt):
|
|
51 |
def sample(prompt):
|
52 |
# Sampling
|
53 |
images = (
|
54 |
-
model.sampling(prompt=prompt, top_k=
|
55 |
.cpu()
|
56 |
.numpy()
|
57 |
)
|
|
|
51 |
def sample(prompt):
|
52 |
# Sampling
|
53 |
images = (
|
54 |
+
model.sampling(prompt=prompt, top_k=96, top_p=None, softmax_temperature=1.0, num_candidates=9, device=device)
|
55 |
.cpu()
|
56 |
.numpy()
|
57 |
)
|