Update app.py
Browse files
app.py
CHANGED
@@ -57,7 +57,6 @@ if load_button:
|
|
57 |
st.write("βοΈ Data split into manageable parts!")
|
58 |
|
59 |
embeddings=create_embeddings()
|
60 |
-
st.write(os.environ["PINECONE_API"])
|
61 |
st.write("π§ Model ready to understand your queries!")
|
62 |
push_to_pinecone(st.session_state['Pinecone_API_Key'],constants.PINECONE_ENVIRONMENT,constants.PINECONE_INDEX,embeddings,chunks_data)
|
63 |
st.write("π Data loaded into Pinecone for quick searching!")
|
@@ -76,7 +75,6 @@ if submit:
|
|
76 |
if st.session_state['HuggingFace_API_Key'] !="" and st.session_state['Pinecone_API_Key']!="" :
|
77 |
|
78 |
embeddings=create_embeddings()
|
79 |
-
st.write(os.environ["PINECONE_API"])
|
80 |
st.write("π§ Model ready to understand your queries!")
|
81 |
index=pull_from_pinecone(st.session_state['Pinecone_API_Key'],constants.PINECONE_ENVIRONMENT,constants.PINECONE_INDEX,embeddings)
|
82 |
st.write("π Database retrieval is done!")
|
|
|
57 |
st.write("βοΈ Data split into manageable parts!")
|
58 |
|
59 |
embeddings=create_embeddings()
|
|
|
60 |
st.write("π§ Model ready to understand your queries!")
|
61 |
push_to_pinecone(st.session_state['Pinecone_API_Key'],constants.PINECONE_ENVIRONMENT,constants.PINECONE_INDEX,embeddings,chunks_data)
|
62 |
st.write("π Data loaded into Pinecone for quick searching!")
|
|
|
75 |
if st.session_state['HuggingFace_API_Key'] !="" and st.session_state['Pinecone_API_Key']!="" :
|
76 |
|
77 |
embeddings=create_embeddings()
|
|
|
78 |
st.write("π§ Model ready to understand your queries!")
|
79 |
index=pull_from_pinecone(st.session_state['Pinecone_API_Key'],constants.PINECONE_ENVIRONMENT,constants.PINECONE_INDEX,embeddings)
|
80 |
st.write("π Database retrieval is done!")
|