Spaces:
Sleeping
Sleeping
Update chatbot_rag.py
Browse files- chatbot_rag.py +2 -2
chatbot_rag.py
CHANGED
|
@@ -52,8 +52,8 @@ def build_qa():
|
|
| 52 |
model=model,
|
| 53 |
tokenizer=tokenizer,
|
| 54 |
max_new_tokens=256,
|
| 55 |
-
temperature=0.
|
| 56 |
-
do_sample=
|
| 57 |
return_full_text=False # 🚀 only return new text, avoids messy context echoes
|
| 58 |
)
|
| 59 |
|
|
|
|
| 52 |
model=model,
|
| 53 |
tokenizer=tokenizer,
|
| 54 |
max_new_tokens=256,
|
| 55 |
+
temperature=0.2,
|
| 56 |
+
do_sample=True,
|
| 57 |
return_full_text=False # 🚀 only return new text, avoids messy context echoes
|
| 58 |
)
|
| 59 |
|