akhildarge01 commited on
Commit
46a479a
·
1 Parent(s): 9cde9c0

Added dependency for openai

Browse files
Files changed (2) hide show
  1. app.py +3 -4
  2. requirements.txt +2 -1
app.py CHANGED
@@ -16,11 +16,10 @@ from langchain.agents import initialize_agent, Tool
16
  from langchain.schema import HumanMessage, AIMessage
17
  from langchain_core.exceptions import OutputParserException
18
 
19
- # Set up OpenAI API key
20
- #openai.api_key = os.getenv("OPENAI_API_KEY")
21
 
22
- #TODO: Need to remove
23
- apiKey = open("key.txt", "r").readline().strip('\n')
24
 
25
 
26
 
 
16
  from langchain.schema import HumanMessage, AIMessage
17
  from langchain_core.exceptions import OutputParserException
18
 
19
+ apiKey = os.getenv("OPENAI_API_KEY")
 
20
 
21
+ #
22
+ # apiKey = open("key.txt", "r").readline().strip('\n')
23
 
24
 
25
 
requirements.txt CHANGED
@@ -2,4 +2,5 @@ openai
2
  langchain
3
  langchain_community
4
  gradio
5
- PyPDF2
 
 
2
  langchain
3
  langchain_community
4
  gradio
5
+ PyPDF2
6
+ langchain_openai