Guru-25 commited on
Commit
b3e9174
β€’
1 Parent(s): d8a085f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -2
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!")