Samyurta commited on
Commit
837802f
·
1 Parent(s): 6f115c5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -45,11 +45,12 @@ def get_vectorstore(text_chunks):
45
 
46
  def get_conversation_chain(vectorstore):
47
  llm = CTransformers(
48
- model='model/llama-2-7b-chat.ggmlv3.q8_0.bin',
49
  model_type='llama',
50
- config={'max_new_tokens': 200, 'temperature': 0.01}
 
51
  )
52
- # llm = HuggingFaceHub(repo_id="google/flan-t5-xxl", model_kwargs={"temperature":0.5, "max_length":512})
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)