Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@ import os
|
|
| 4 |
openai_api_key = os.getenv("OPENAI_API_KEY")
|
| 5 |
|
| 6 |
# Check if the key is set and print accordingly
|
| 7 |
-
if
|
| 8 |
-
print("
|
| 9 |
else:
|
| 10 |
-
print("
|
|
|
|
| 4 |
openai_api_key = os.getenv("OPENAI_API_KEY")
|
| 5 |
|
| 6 |
# Check if the key is set and print accordingly
|
| 7 |
+
if openai_api_key:
|
| 8 |
+
print("OPEN_API_KEY is set.")
|
| 9 |
else:
|
| 10 |
+
print("OPEN_API_KEY is not set.")
|