Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -92,7 +92,8 @@ def evaluate(
|
|
92 |
temperature=temperature,
|
93 |
top_p=top_p,
|
94 |
top_k=top_k,
|
95 |
-
num_beams=num_beams
|
|
|
96 |
)
|
97 |
with torch.no_grad():
|
98 |
generation_output = model.generate(
|
|
|
92 |
temperature=temperature,
|
93 |
top_p=top_p,
|
94 |
top_k=top_k,
|
95 |
+
num_beams=num_beams,
|
96 |
+
**kwargs,
|
97 |
)
|
98 |
with torch.no_grad():
|
99 |
generation_output = model.generate(
|