andreasmartin commited on
Commit
d86e1ef
1 Parent(s): 8f409cd

deepnote update

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -93,7 +93,7 @@ def get_retriever(context_state: str, vectordb):
93
 
94
  @cl.langchain_factory(use_async=True)
95
  def factory():
96
- if not os.environ["OPENAI_API_KEY"]:
97
  os.environ["OPENAI_API_KEY"] = cl.user_session.get("env").get("OPENAI_API_KEY")
98
  df_agent = load_agent()
99
  load_vectordb()
 
93
 
94
  @cl.langchain_factory(use_async=True)
95
  def factory():
96
+ if "OPENAI_API_KEY" in os.environ:
97
  os.environ["OPENAI_API_KEY"] = cl.user_session.get("env").get("OPENAI_API_KEY")
98
  df_agent = load_agent()
99
  load_vectordb()