Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -17,8 +17,8 @@ try:
|
|
| 17 |
# Add this debugging code right after your API key initialization
|
| 18 |
if os.getenv('OPENAI_API_KEY'):
|
| 19 |
st.write("API key found")
|
| 20 |
-
else:
|
| 21 |
-
|
| 22 |
if not os.getenv('OPENAI_API_KEY'):
|
| 23 |
st.error("OpenAI API key not found. Please check your .env file.")
|
| 24 |
st.stop()
|
|
|
|
| 17 |
# Add this debugging code right after your API key initialization
|
| 18 |
if os.getenv('OPENAI_API_KEY'):
|
| 19 |
st.write("API key found")
|
| 20 |
+
else:
|
| 21 |
+
st.write("No API key found")
|
| 22 |
if not os.getenv('OPENAI_API_KEY'):
|
| 23 |
st.error("OpenAI API key not found. Please check your .env file.")
|
| 24 |
st.stop()
|