Update src/streamlit_app.py
Browse files- src/streamlit_app.py +2 -1
src/streamlit_app.py
CHANGED
|
@@ -36,7 +36,8 @@ st.title("📺 ChatYT: Chat with any YouTube Video")
|
|
| 36 |
st.caption("Summarize and ask questions about any YouTube video using LangChain and Google Gemini.")
|
| 37 |
|
| 38 |
# --- API Key Handling ---
|
| 39 |
-
GEMINI_API_KEY =
|
|
|
|
| 40 |
|
| 41 |
if not GEMINI_API_KEY:
|
| 42 |
GEMINI_API_KEY = st.sidebar.text_input(
|
|
|
|
| 36 |
st.caption("Summarize and ask questions about any YouTube video using LangChain and Google Gemini.")
|
| 37 |
|
| 38 |
# --- API Key Handling ---
|
| 39 |
+
GEMINI_API_KEY = os.environ.get("GEMINI_API_KEY")
|
| 40 |
+
|
| 41 |
|
| 42 |
if not GEMINI_API_KEY:
|
| 43 |
GEMINI_API_KEY = st.sidebar.text_input(
|