Spaces:
Runtime error
Runtime error
Commit
·
992db87
1
Parent(s):
5fe8d9c
Update app1.py
Browse files
app1.py
CHANGED
|
@@ -37,7 +37,7 @@ def get_vectorstore(text_chunks):
|
|
| 37 |
|
| 38 |
|
| 39 |
def get_conversation_chain(vectorstore):
|
| 40 |
-
llm = HuggingFaceHub(repo_id="
|
| 41 |
|
| 42 |
memory = ConversationBufferMemory(
|
| 43 |
memory_key='chat_history', return_messages=True)
|
|
@@ -97,6 +97,6 @@ def main():
|
|
| 97 |
st.session_state.conversation = get_conversation_chain(
|
| 98 |
vectorstore)
|
| 99 |
|
| 100 |
-
|
| 101 |
if __name__ == '__main__':
|
| 102 |
main()
|
|
|
|
| 37 |
|
| 38 |
|
| 39 |
def get_conversation_chain(vectorstore):
|
| 40 |
+
llm = HuggingFaceHub(repo_id="google/flan-t5-xxl", model_kwargs={"temperature":0.2, "max_length":1024})
|
| 41 |
|
| 42 |
memory = ConversationBufferMemory(
|
| 43 |
memory_key='chat_history', return_messages=True)
|
|
|
|
| 97 |
st.session_state.conversation = get_conversation_chain(
|
| 98 |
vectorstore)
|
| 99 |
|
| 100 |
+
|
| 101 |
if __name__ == '__main__':
|
| 102 |
main()
|