Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +2 -1
src/streamlit_app.py
CHANGED
|
@@ -10,6 +10,7 @@ import logging
|
|
| 10 |
|
| 11 |
# Backend API Key Configuration
|
| 12 |
GEMINI_API_KEY = os.getenv("GEMENI_KEY")
|
|
|
|
| 13 |
|
| 14 |
# Page configuration
|
| 15 |
st.set_page_config(
|
|
@@ -422,7 +423,7 @@ def main():
|
|
| 422 |
""")
|
| 423 |
|
| 424 |
elif generate_button:
|
| 425 |
-
if not GEMINI_API_KEY or GEMINI_API_KEY ==
|
| 426 |
st.error("Please configure your Gemini API key in the backend.")
|
| 427 |
return
|
| 428 |
|
|
|
|
| 10 |
|
| 11 |
# Backend API Key Configuration
|
| 12 |
GEMINI_API_KEY = os.getenv("GEMENI_KEY")
|
| 13 |
+
print(GEMINI_API_KEY)
|
| 14 |
|
| 15 |
# Page configuration
|
| 16 |
st.set_page_config(
|
|
|
|
| 423 |
""")
|
| 424 |
|
| 425 |
elif generate_button:
|
| 426 |
+
if not GEMINI_API_KEY or GEMINI_API_KEY == "your-gemini-api-key-here":
|
| 427 |
st.error("Please configure your Gemini API key in the backend.")
|
| 428 |
return
|
| 429 |
|