Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -37,7 +37,7 @@ def get_vectorstore(text_chunks):
|
|
| 37 |
|
| 38 |
def get_conversation_chain(vectorstore):
|
| 39 |
try:
|
| 40 |
-
llm = HuggingFaceHub(repo_id="google/flan-t5-xxl", model_kwargs={"temperature": 0.
|
| 41 |
memory = ConversationBufferMemory(memory_key="chat_history", return_messages=True)
|
| 42 |
conversation_chain = ConversationalRetrievalChain.from_llm(
|
| 43 |
llm=llm,
|
|
|
|
| 37 |
|
| 38 |
def get_conversation_chain(vectorstore):
|
| 39 |
try:
|
| 40 |
+
llm = HuggingFaceHub(repo_id="google/flan-t5-xxl", model_kwargs={"temperature": 0.8, "max_length": 512})
|
| 41 |
memory = ConversationBufferMemory(memory_key="chat_history", return_messages=True)
|
| 42 |
conversation_chain = ConversationalRetrievalChain.from_llm(
|
| 43 |
llm=llm,
|