schellrw commited on
Commit
f4c7d5d
·
verified ·
1 Parent(s): fb8083a

bracks to parens

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -31,14 +31,14 @@ def initialize_session_state():
31
  st.session_state.history = []
32
  if "conversation" not in st.session_state:
33
  embeddings = download_hugging_face_embeddings()
34
- pc = Pinecone(api_key=os.environ["PINECONE_API_KEY"])
35
  index = pc.Index("il-legal")
36
  docsearch = PineconeVectorStore.from_existing_index(index_name="il-legal", embedding=embeddings)
37
 
38
  repo_id = "mistralai/Mixtral-8x7B-Instruct-v0.1"
39
  llm = HuggingFaceEndpoint(
40
  repo_id=repo_id,
41
- model_kwargs={"huggingface_api_token":os.environ["HUGGINGFACEHUB_API_TOKEN"]},
42
  temperature=0.5,
43
  top_k=10,
44
  )
 
31
  st.session_state.history = []
32
  if "conversation" not in st.session_state:
33
  embeddings = download_hugging_face_embeddings()
34
+ pc = Pinecone(api_key=os.getenv("PINECONE_API_KEY"))
35
  index = pc.Index("il-legal")
36
  docsearch = PineconeVectorStore.from_existing_index(index_name="il-legal", embedding=embeddings)
37
 
38
  repo_id = "mistralai/Mixtral-8x7B-Instruct-v0.1"
39
  llm = HuggingFaceEndpoint(
40
  repo_id=repo_id,
41
+ model_kwargs={"huggingface_api_token":os.getenv("HUGGINGFACEHUB_API_TOKEN")},
42
  temperature=0.5,
43
  top_k=10,
44
  )