Guru-25 commited on
Commit
dcda1be
Β·
verified Β·
1 Parent(s): dbafea6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -59,7 +59,7 @@ if load_button:
59
  embeddings=create_embeddings()
60
  st.write("🧠 Model ready to understand your queries!")
61
 
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!")
64
 
65
  st.sidebar.success("πŸŽ‰ Data successfully loaded into Pinecone!")
@@ -78,7 +78,7 @@ if submit:
78
  embeddings=create_embeddings()
79
  st.write("🧠 Model ready to understand your queries!")
80
 
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!")
83
 
84
  relavant_docs=get_similar_docs(index,prompt,document_count)
 
59
  embeddings=create_embeddings()
60
  st.write("🧠 Model ready to understand your queries!")
61
 
62
+ push_to_pinecone(os.getenv('PINECONE_API'),constants.PINECONE_ENVIRONMENT,constants.PINECONE_INDEX,embeddings,chunks_data)
63
  st.write("πŸš€ Data loaded into Pinecone for quick searching!")
64
 
65
  st.sidebar.success("πŸŽ‰ Data successfully loaded into Pinecone!")
 
78
  embeddings=create_embeddings()
79
  st.write("🧠 Model ready to understand your queries!")
80
 
81
+ index=pull_from_pinecone(os.getenv('PINECONE_API'),constants.PINECONE_ENVIRONMENT,constants.PINECONE_INDEX,embeddings)
82
  st.write("πŸ” Database retrieval is done!")
83
 
84
  relavant_docs=get_similar_docs(index,prompt,document_count)