Spaces:
Runtime error
Runtime error
andreasmartin
commited on
Commit
•
d6f53d4
1
Parent(s):
d86e1ef
deepnote update
Browse files
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 "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()
|
|
|
93 |
|
94 |
@cl.langchain_factory(use_async=True)
|
95 |
def factory():
|
96 |
+
if "OPENAI_API_KEY" not 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()
|