adarsh commited on
Commit
4ddb082
1 Parent(s): ba97fa9

fixed pinecone issue

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -2,7 +2,7 @@ import streamlit as st
2
  from langchain.prompts import PromptTemplate
3
  from langchain.llms import CTransformers
4
  from src.helper import download_hf_embeddings, text_split, download_hf_model
5
- from langchain.vectorstores import Pinecone
6
  import os
7
  from dotenv import load_dotenv
8
  from src.prompt import prompt_template
@@ -10,7 +10,7 @@ from langchain.chains import RetrievalQA
10
  import time
11
 
12
  # Load environment variables
13
- load_dotenv()
14
  PINECONE_API_KEY = os.environ.get('PINECONE_API_KEY')
15
 
16
  # Set page configuration
 
2
  from langchain.prompts import PromptTemplate
3
  from langchain.llms import CTransformers
4
  from src.helper import download_hf_embeddings, text_split, download_hf_model
5
+ from langchain.vectorstores import Pinecone as LangchainPinecone
6
  import os
7
  from dotenv import load_dotenv
8
  from src.prompt import prompt_template
 
10
  import time
11
 
12
  # Load environment variables
13
+
14
  PINECONE_API_KEY = os.environ.get('PINECONE_API_KEY')
15
 
16
  # Set page configuration