Hackoor commited on
Commit
7a818f1
·
1 Parent(s): 0fe99dc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py CHANGED
@@ -60,6 +60,13 @@ def display_chat_history(chain):
60
  message(st.session_state["past"][i], is_user=True, key=str(i) + '_user', avatar_style="thumbs")
61
  message(st.session_state["generated"][i], key=str(i), avatar_style="fun-emoji")
62
 
 
 
 
 
 
 
 
63
  def create_conversational_chain(vector_store):
64
  load_dotenv()
65
  # Create llm
 
60
  message(st.session_state["past"][i], is_user=True, key=str(i) + '_user', avatar_style="thumbs")
61
  message(st.session_state["generated"][i], key=str(i), avatar_style="fun-emoji")
62
 
63
+
64
+
65
+
66
+
67
+
68
+ os.environ['HuggingFaceHub_API_Token']= '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'
69
+ tokenizer = AutoTokenizer.from_pretrained("NousResearch/Nous-Hermes-llama-2-7b")
70
  def create_conversational_chain(vector_store):
71
  load_dotenv()
72
  # Create llm