ali121300 commited on
Commit
22d45be
1 Parent(s): cbf031d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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: