Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -44,7 +44,7 @@ def get_vectorstore(text_chunks):
|
|
| 44 |
|
| 45 |
def get_conversation_chain(vectorstore):
|
| 46 |
# llm = ChatOpenAI(model_name="gpt-3.5-turbo-16k")
|
| 47 |
-
llm = HuggingFaceHub(repo_id="google/flan-t5-xxl", huggingfacehub_api_token=hub_token, model_kwargs={"temperature":0.5, "max_length":
|
| 48 |
|
| 49 |
memory = ConversationBufferMemory(
|
| 50 |
memory_key='chat_history', return_messages=True)
|
|
|
|
| 44 |
|
| 45 |
def get_conversation_chain(vectorstore):
|
| 46 |
# llm = ChatOpenAI(model_name="gpt-3.5-turbo-16k")
|
| 47 |
+
llm = HuggingFaceHub(repo_id="google/flan-t5-xxl", huggingfacehub_api_token=hub_token, model_kwargs={"temperature":0.5, "max_length":20})
|
| 48 |
|
| 49 |
memory = ConversationBufferMemory(
|
| 50 |
memory_key='chat_history', return_messages=True)
|