Waflon commited on
Commit
736bb18
1 Parent(s): df7bc3a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -8,9 +8,11 @@ from langchain.text_splitter import RecursiveCharacterTextSplitter
8
  from langchain.vectorstores import FAISS
9
  from langchain.memory import ConversationBufferMemory
10
  from langchain_openai import ChatOpenAI
 
11
 
12
  from huggingface_hub import login
13
- login(token =st.secrets["HF"])
 
14
 
15
  # Function to load documents
16
  def load_documents():
 
8
  from langchain.vectorstores import FAISS
9
  from langchain.memory import ConversationBufferMemory
10
  from langchain_openai import ChatOpenAI
11
+ import os
12
 
13
  from huggingface_hub import login
14
+ login(token = st.secrets["HF"])
15
+ os.environ["OPENAI_API_KEY"] = st.secrets["OPENAI_API_KEY"])
16
 
17
  # Function to load documents
18
  def load_documents():