Sanchayt commited on
Commit
7665883
·
1 Parent(s): e7085bf
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -10,11 +10,13 @@ from langchain.utilities.zapier import ZapierNLAWrapper
10
  import json
11
  from langchain.callbacks import StreamlitCallbackHandler
12
 
13
- # load_dotenv("../../.env")s
 
14
 
15
  agents = os.getenv("ZAPIER_NLA_API_KEY")
16
  api_key = os.getenv("OPENAI_API_KEY")
17
 
 
18
  if api_key is None:
19
  api_key = st.text_input("Enter your OpenAI API key", type="password")
20
  os.environ["OPENAI_API_KEY"] = api_key
@@ -22,6 +24,8 @@ if api_key is None:
22
  if agents is None:
23
  agents = st.text_input("Enter your Zapier NLA API key", type="password")
24
  os.environ["ZAPIER_NLA_API_KEY"] = agents
 
 
25
  # Initialize necessary objects
26
  llm = ChatOpenAI(streaming=True)
27
  zapier = ZapierNLAWrapper()
 
10
  import json
11
  from langchain.callbacks import StreamlitCallbackHandler
12
 
13
+ load_dotenv("../../.env")
14
+
15
 
16
  agents = os.getenv("ZAPIER_NLA_API_KEY")
17
  api_key = os.getenv("OPENAI_API_KEY")
18
 
19
+
20
  if api_key is None:
21
  api_key = st.text_input("Enter your OpenAI API key", type="password")
22
  os.environ["OPENAI_API_KEY"] = api_key
 
24
  if agents is None:
25
  agents = st.text_input("Enter your Zapier NLA API key", type="password")
26
  os.environ["ZAPIER_NLA_API_KEY"] = agents
27
+
28
+
29
  # Initialize necessary objects
30
  llm = ChatOpenAI(streaming=True)
31
  zapier = ZapierNLAWrapper()