JBHF commited on
Commit
2228248
1 Parent(s): 67b3140

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -48,8 +48,9 @@ print("groq_api_key: ", groq_api_key)
48
  # st.title("Chat with Docs - Groq Edition :) ")
49
  st.title("NonToxicGlazeAdvisor: A tool for getting advice on non-toxic ceramic glazes for earthenware temperature ranges.")
50
  st.title("Victor Benchuijsen : (Glaze techniques / Ceramics)")
51
- st.title("Jan Bours : Artificial Intelligence / Data Science / Natural Language Processing")
52
- st.title("Chat with Docs - Groq Edition (Very Fast!) - VERSION 1 - March 18, 2024")
 
53
 
54
  st.write("---------------------------------")
55
 
@@ -138,12 +139,12 @@ if "vector" not in st.session_state:
138
  st.session_state.vector = FAISS.from_documents(st.session_state.documents, st.session_state.embeddings) # ORIGINAL
139
 
140
  # st.session_state.vector = FAISS.from_documents(st.session_state.documents, st.session_state.embeddings) # ORIGINAL
141
- st.session_state.vector.save_local("faiss_index")
142
  # The de-serialization relies loading a pickle file.
143
  # Pickle files can be modified to deliver a malicious payload that results in execution of arbitrary code on your machine.
144
  # You will need to set `allow_dangerous_deserialization` to `True` to enable deserialization. If you do this, make sure that you trust the source of the data.
145
 
146
- st.session_state.vector = FAISS.load_local("faiss_index", st.session_state.embeddings, allow_dangerous_deserialization=True)
147
 
148
  # ZIE:
149
  # ZIE VOOR EEN APP MET CHROMADB:
 
48
  # st.title("Chat with Docs - Groq Edition :) ")
49
  st.title("NonToxicGlazeAdvisor: A tool for getting advice on non-toxic ceramic glazes for earthenware temperature ranges.")
50
  st.title("Victor Benchuijsen : (Glaze techniques / Ceramics)")
51
+ st.title("Jan Bours : Artificial Intelligence / Data Science / Natural Language Processing (ALL RIGHTS RESERVED)")
52
+ st.title(" ")
53
+ st.title("Chat with Docs - Using AI: 'mixtral-8x7b-32768' Groq Edition (Very Fast!) - VERSION 1 - March 18, 2024")
54
 
55
  st.write("---------------------------------")
56
 
 
139
  st.session_state.vector = FAISS.from_documents(st.session_state.documents, st.session_state.embeddings) # ORIGINAL
140
 
141
  # st.session_state.vector = FAISS.from_documents(st.session_state.documents, st.session_state.embeddings) # ORIGINAL
142
+ #st.session_state.vector.save_local("faiss_index")
143
  # The de-serialization relies loading a pickle file.
144
  # Pickle files can be modified to deliver a malicious payload that results in execution of arbitrary code on your machine.
145
  # You will need to set `allow_dangerous_deserialization` to `True` to enable deserialization. If you do this, make sure that you trust the source of the data.
146
 
147
+ #st.session_state.vector = FAISS.load_local("faiss_index", st.session_state.embeddings, allow_dangerous_deserialization=True)
148
 
149
  # ZIE:
150
  # ZIE VOOR EEN APP MET CHROMADB: