nesanchezo commited on
Commit
eec9d2b
·
verified ·
1 Parent(s): e014e2c

Update create_vector_stores.py

Browse files
Files changed (1) hide show
  1. create_vector_stores.py +6 -2
create_vector_stores.py CHANGED
@@ -29,8 +29,12 @@ class VectorStoreCreator:
29
  data_path: Path to the pickle file containing the product data
30
  """
31
  # Load environment variables
32
- load_dotenv()
33
-
 
 
 
 
34
  # Initialize OpenAI client
35
  self.client = OpenAI()
36
 
 
29
  data_path: Path to the pickle file containing the product data
30
  """
31
  # Load environment variables
32
+ #load_dotenv()
33
+ # Obtener las claves de los secrets de Hugging Face
34
+ openai.api_key = st.secrets["OPENAI_API_KEY"]
35
+ os.environ["LANGCHAIN_API_KEY"] = st.secrets["LANGCHAIN_API_KEY"]
36
+ os.environ["LANGCHAIN_TRACING_V2"] = st.secrets["LANGCHAIN_TRACING_V2"]
37
+
38
  # Initialize OpenAI client
39
  self.client = OpenAI()
40