Guru-25 commited on
Commit
b58a676
Β·
verified Β·
1 Parent(s): c7cee21

Update app.py

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