Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -348,7 +348,7 @@ with st.sidebar:
|
|
| 348 |
# API Key
|
| 349 |
st.markdown('<div class="section-head">Configuration</div>', unsafe_allow_html=True)
|
| 350 |
api_key = st.text_input(
|
| 351 |
-
"
|
| 352 |
type="password",
|
| 353 |
placeholder="gsk_...",
|
| 354 |
help="Get free key at console.groq.com"
|
|
@@ -514,7 +514,7 @@ if ask_btn:
|
|
| 514 |
if not query.strip():
|
| 515 |
st.error("Please enter a question!")
|
| 516 |
elif not st.session_state.api_configured:
|
| 517 |
-
st.error("Please enter your
|
| 518 |
else:
|
| 519 |
with st.spinner("🔍 Retrieving context and generating answer..."):
|
| 520 |
all_chunks = []
|
|
|
|
| 348 |
# API Key
|
| 349 |
st.markdown('<div class="section-head">Configuration</div>', unsafe_allow_html=True)
|
| 350 |
api_key = st.text_input(
|
| 351 |
+
"API Key",
|
| 352 |
type="password",
|
| 353 |
placeholder="gsk_...",
|
| 354 |
help="Get free key at console.groq.com"
|
|
|
|
| 514 |
if not query.strip():
|
| 515 |
st.error("Please enter a question!")
|
| 516 |
elif not st.session_state.api_configured:
|
| 517 |
+
st.error("Please enter your API key in the sidebar!")
|
| 518 |
else:
|
| 519 |
with st.spinner("🔍 Retrieving context and generating answer..."):
|
| 520 |
all_chunks = []
|