Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -17,6 +17,7 @@ from openai import OpenAI
|
|
17 |
from langchain.chat_models import ChatOpenAI
|
18 |
# set this key as an environment variable
|
19 |
os.environ["HUGGINGFACEHUB_API_TOKEN"] = st.secrets['Key2']
|
|
|
20 |
###########################################################################################
|
21 |
|
22 |
def get_pdf_text(pdf_docs : list) -> str:
|
|
|
17 |
from langchain.chat_models import ChatOpenAI
|
18 |
# set this key as an environment variable
|
19 |
os.environ["HUGGINGFACEHUB_API_TOKEN"] = st.secrets['Key2']
|
20 |
+
os.environ["OPENAI_API_KEY"] =st.secrets['Key3']
|
21 |
###########################################################################################
|
22 |
|
23 |
def get_pdf_text(pdf_docs : list) -> str:
|