Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +2 -26
src/streamlit_app.py
CHANGED
|
@@ -5,7 +5,7 @@ import fitz # PyMuPDF
|
|
| 5 |
from simple_rag import generate_data_store, ask_question, DATA_PATH, CHROMA_PATH # <- Added CHROMA_PATH
|
| 6 |
|
| 7 |
# --- Page Configuration ---
|
| 8 |
-
st.set_page_config(page_title="
|
| 9 |
|
| 10 |
# --- DARK MODE STYLING ---
|
| 11 |
st.markdown("""
|
|
@@ -40,31 +40,7 @@ if "dark_mode" not in st.session_state:
|
|
| 40 |
# --- Sidebar: Settings + Clear Vector Store ---
|
| 41 |
with st.sidebar:
|
| 42 |
st.title("βοΈ Settings")
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
# Set CSS vars
|
| 46 |
-
if st.session_state.dark_mode:
|
| 47 |
-
st.markdown("""
|
| 48 |
-
<style>
|
| 49 |
-
:root {
|
| 50 |
-
--background-color: #111827;
|
| 51 |
-
--text-color: #f3f4f6;
|
| 52 |
-
--primary-color-bg: #1e293b;
|
| 53 |
-
--secondary-color-bg: #334155;
|
| 54 |
-
}
|
| 55 |
-
</style>
|
| 56 |
-
""", unsafe_allow_html=True)
|
| 57 |
-
else:
|
| 58 |
-
st.markdown("""
|
| 59 |
-
<style>
|
| 60 |
-
:root {
|
| 61 |
-
--background-color: #ffffff;
|
| 62 |
-
--text-color: #1f2937;
|
| 63 |
-
--primary-color-bg: #e0f2fe;
|
| 64 |
-
--secondary-color-bg: #f3f4f6;
|
| 65 |
-
}
|
| 66 |
-
</style>
|
| 67 |
-
""", unsafe_allow_html=True)
|
| 68 |
|
| 69 |
# --- Clear Chroma Vector Store Option ---
|
| 70 |
if st.button("ποΈ Clear Vector Store"):
|
|
|
|
| 5 |
from simple_rag import generate_data_store, ask_question, DATA_PATH, CHROMA_PATH # <- Added CHROMA_PATH
|
| 6 |
|
| 7 |
# --- Page Configuration ---
|
| 8 |
+
st.set_page_config(page_title="SEALION v3.5 8B RAG", layout="wide")
|
| 9 |
|
| 10 |
# --- DARK MODE STYLING ---
|
| 11 |
st.markdown("""
|
|
|
|
| 40 |
# --- Sidebar: Settings + Clear Vector Store ---
|
| 41 |
with st.sidebar:
|
| 42 |
st.title("βοΈ Settings")
|
| 43 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 44 |
|
| 45 |
# --- Clear Chroma Vector Store Option ---
|
| 46 |
if st.button("ποΈ Clear Vector Store"):
|