Update app.py
Browse files
app.py
CHANGED
|
@@ -160,8 +160,6 @@ st.title("Document Analyzer and Podcast Generator")
|
|
| 160 |
# Fetch the API key status
|
| 161 |
if "OPENAI_API_KEY" not in os.environ or not os.getenv("OPENAI_API_KEY"):
|
| 162 |
st.error("The 'OPENAI_API_KEY' environment variable is not set. Please configure it in your hosting environment.")
|
| 163 |
-
else:
|
| 164 |
-
st.success("API Key successfully loaded from environment variable.")
|
| 165 |
|
| 166 |
# File upload
|
| 167 |
st.subheader("Step 1: Upload Documents")
|
|
|
|
| 160 |
# Fetch the API key status
|
| 161 |
if "OPENAI_API_KEY" not in os.environ or not os.getenv("OPENAI_API_KEY"):
|
| 162 |
st.error("The 'OPENAI_API_KEY' environment variable is not set. Please configure it in your hosting environment.")
|
|
|
|
|
|
|
| 163 |
|
| 164 |
# File upload
|
| 165 |
st.subheader("Step 1: Upload Documents")
|