Waflon commited on
Commit
0efd489
1 Parent(s): f15366a

Update modelo.py

Browse files
Files changed (1) hide show
  1. modelo.py +0 -2
modelo.py CHANGED
@@ -1,4 +1,3 @@
1
- import os
2
  from langchain.prompts import PromptTemplate
3
  from langchain.chains.llm import LLMChain
4
  from langchain.chains.combine_documents.stuff import StuffDocumentsChain
@@ -10,7 +9,6 @@ from langchain_community.document_loaders import HuggingFaceDatasetLoader
10
  from langchain_community.embeddings import HuggingFaceEmbeddings
11
  from dotenv import load_dotenv
12
  load_dotenv()
13
- os.environ["OPENAI_API_KEY"] = st.secrets("OPENAI_API_KEY")
14
 
15
  def get_chain():
16
  # agregada en la config de hugginface
 
 
1
  from langchain.prompts import PromptTemplate
2
  from langchain.chains.llm import LLMChain
3
  from langchain.chains.combine_documents.stuff import StuffDocumentsChain
 
9
  from langchain_community.embeddings import HuggingFaceEmbeddings
10
  from dotenv import load_dotenv
11
  load_dotenv()
 
12
 
13
  def get_chain():
14
  # agregada en la config de hugginface