Update app.py
Browse files
app.py
CHANGED
@@ -47,7 +47,7 @@ def get_vectorstore(text_chunks):
|
|
47 |
|
48 |
def get_conversation_chain(vectorstore):
|
49 |
# llm = ChatOpenAI()
|
50 |
-
llm = HuggingFaceHub(repo_id="google/flan-t5-
|
51 |
|
52 |
memory = ConversationBufferMemory(
|
53 |
memory_key='chat_history', return_messages=True)
|
|
|
47 |
|
48 |
def get_conversation_chain(vectorstore):
|
49 |
# llm = ChatOpenAI()
|
50 |
+
llm = HuggingFaceHub(repo_id="google/flan-t5-base", model_kwargs={"temperature":0.5, "max_length":512})
|
51 |
|
52 |
memory = ConversationBufferMemory(
|
53 |
memory_key='chat_history', return_messages=True)
|