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