bracks to parens
Browse files
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.
|
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.
|
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 |
)
|