Spaces:
Sleeping
Sleeping
fix: Fixed crash with model kwargs
Browse files
app.py
CHANGED
@@ -48,8 +48,7 @@ def generate(
|
|
48 |
max_new_tokens=max_new_tokens,
|
49 |
top_p=top_p,
|
50 |
repetition_penalty=repetition_penalty,
|
51 |
-
do_sample=True
|
52 |
-
seed=42,
|
53 |
)
|
54 |
logging.debug("Generate Args: %s", generate_kwargs)
|
55 |
|
|
|
48 |
max_new_tokens=max_new_tokens,
|
49 |
top_p=top_p,
|
50 |
repetition_penalty=repetition_penalty,
|
51 |
+
do_sample=True
|
|
|
52 |
)
|
53 |
logging.debug("Generate Args: %s", generate_kwargs)
|
54 |
|