Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -45,11 +45,12 @@ def get_vectorstore(text_chunks):
|
|
| 45 |
|
| 46 |
def get_conversation_chain(vectorstore):
|
| 47 |
llm = CTransformers(
|
| 48 |
-
model='
|
| 49 |
model_type='llama',
|
| 50 |
-
config={'max_new_tokens': 200, 'temperature': 0.01}
|
|
|
|
| 51 |
)
|
| 52 |
-
|
| 53 |
|
| 54 |
memory = ConversationBufferMemory(
|
| 55 |
memory_key='chat_history', return_messages=True)
|
|
|
|
| 45 |
|
| 46 |
def get_conversation_chain(vectorstore):
|
| 47 |
llm = CTransformers(
|
| 48 |
+
model='llama-2-7b-chat.ggmlv3.q8_0.bin',
|
| 49 |
model_type='llama',
|
| 50 |
+
config={'max_new_tokens': 200, 'temperature': 0.01},
|
| 51 |
+
token='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'
|
| 52 |
)
|
| 53 |
+
|
| 54 |
|
| 55 |
memory = ConversationBufferMemory(
|
| 56 |
memory_key='chat_history', return_messages=True)
|