Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -55,7 +55,7 @@ def generate_text(prompt, context, max_length=2100):
|
|
55 |
max_new_tokens=max_length
|
56 |
generation_config = GenerationConfig(
|
57 |
max_new_tokens=max_new_tokens,
|
58 |
-
temperature=0.
|
59 |
repetition_penalty=1.3, # 1.04, #1.1
|
60 |
do_sample=True,
|
61 |
)
|
|
|
55 |
max_new_tokens=max_length
|
56 |
generation_config = GenerationConfig(
|
57 |
max_new_tokens=max_new_tokens,
|
58 |
+
temperature=0.1, #top_p=0.9, top_k=50, # 45
|
59 |
repetition_penalty=1.3, # 1.04, #1.1
|
60 |
do_sample=True,
|
61 |
)
|