Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,13 +10,6 @@ TOP_K = int(os.environ.get("TOP_K", "4")) # optional env override
|
|
| 10 |
st.set_page_config(page_title="LlamaIndex Cloud Chat", page_icon="💬")
|
| 11 |
st.title("Ask Atrium Docs (public index)")
|
| 12 |
|
| 13 |
-
# Small toolbar (no sidebar)
|
| 14 |
-
col1, col2 = st.columns([1, 1])
|
| 15 |
-
with col2:
|
| 16 |
-
if st.button("Clear conversation", key="clear_chat_btn"):
|
| 17 |
-
st.session_state.pop("messages", None)
|
| 18 |
-
st.rerun()
|
| 19 |
-
|
| 20 |
# Secrets check
|
| 21 |
if not LLAMA_KEY:
|
| 22 |
st.error("Missing LLAMA_CLOUD_API_KEY (add in Space Settings → Secrets).")
|
|
|
|
| 10 |
st.set_page_config(page_title="LlamaIndex Cloud Chat", page_icon="💬")
|
| 11 |
st.title("Ask Atrium Docs (public index)")
|
| 12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
# Secrets check
|
| 14 |
if not LLAMA_KEY:
|
| 15 |
st.error("Missing LLAMA_CLOUD_API_KEY (add in Space Settings → Secrets).")
|