Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -57,8 +57,8 @@ def load_pdf(file_path):
|
|
| 57 |
|
| 58 |
return VectorStore
|
| 59 |
|
| 60 |
-
def load_chatbot(max_tokens=
|
| 61 |
-
return load_qa_chain(llm=OpenAI(temperature=0.
|
| 62 |
|
| 63 |
def display_chat_history(chat_history):
|
| 64 |
for chat in chat_history:
|
|
|
|
| 57 |
|
| 58 |
return VectorStore
|
| 59 |
|
| 60 |
+
def load_chatbot(max_tokens=300):
|
| 61 |
+
return load_qa_chain(llm=OpenAI(temperature=0.1, max_tokens=max_tokens), chain_type="stuff")
|
| 62 |
|
| 63 |
def display_chat_history(chat_history):
|
| 64 |
for chat in chat_history:
|