Spaces:
Runtime error
Runtime error
Commit
·
f3b9247
1
Parent(s):
53482f6
Update app.py
Browse files
app.py
CHANGED
|
@@ -14,6 +14,8 @@ def set_openai_api_key(api_key: str):
|
|
| 14 |
"""Set the api key and return chain.
|
| 15 |
If no api_key, then None is returned.
|
| 16 |
"""
|
|
|
|
|
|
|
| 17 |
if api_key:
|
| 18 |
os.environ["OPENAI_API_KEY"] = api_key
|
| 19 |
chain = get_chain(vectorstore)
|
|
|
|
| 14 |
"""Set the api key and return chain.
|
| 15 |
If no api_key, then None is returned.
|
| 16 |
"""
|
| 17 |
+
print(os.environ["TEST"])
|
| 18 |
+
|
| 19 |
if api_key:
|
| 20 |
os.environ["OPENAI_API_KEY"] = api_key
|
| 21 |
chain = get_chain(vectorstore)
|