eikarna commited on
Commit ·
853734d
1
Parent(s): 86ee5b2
Fix: File Upload Session
Browse files
app.py
CHANGED
|
@@ -221,7 +221,7 @@ if prompt := st.chat_input("Type your message..."):
|
|
| 221 |
context_text = "\n".join(relevant_contexts) if relevant_contexts else ""
|
| 222 |
system_msg = (
|
| 223 |
f"{system_message} Use the provided context to answer accurately."
|
| 224 |
-
if context_text
|
| 225 |
else system_message
|
| 226 |
)
|
| 227 |
|
|
@@ -237,7 +237,8 @@ if prompt := st.chat_input("Type your message..."):
|
|
| 237 |
"parameters": {
|
| 238 |
"max_new_tokens": max_tokens,
|
| 239 |
"temperature": temperature,
|
| 240 |
-
"top_p": top_p
|
|
|
|
| 241 |
}
|
| 242 |
}
|
| 243 |
|
|
|
|
| 221 |
context_text = "\n".join(relevant_contexts) if relevant_contexts else ""
|
| 222 |
system_msg = (
|
| 223 |
f"{system_message} Use the provided context to answer accurately."
|
| 224 |
+
if context_text
|
| 225 |
else system_message
|
| 226 |
)
|
| 227 |
|
|
|
|
| 237 |
"parameters": {
|
| 238 |
"max_new_tokens": max_tokens,
|
| 239 |
"temperature": temperature,
|
| 240 |
+
"top_p": top_p,
|
| 241 |
+
"return_full_text": False
|
| 242 |
}
|
| 243 |
}
|
| 244 |
|