Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -449,11 +449,6 @@ class DocumentRAG:
|
|
449 |
|
450 |
|
451 |
|
452 |
-
if "rag_system" not in st.session_state or st.session_state.embedding_model != embedding_choice:
|
453 |
-
st.session_state.embedding_model = embedding_choice
|
454 |
-
st.session_state.rag_system = DocumentRAG(embedding_choice=embedding_choice)
|
455 |
-
|
456 |
-
|
457 |
|
458 |
# Sidebar
|
459 |
with st.sidebar:
|
@@ -486,7 +481,9 @@ embedding_choice = st.radio(
|
|
486 |
key="embedding_model"
|
487 |
)
|
488 |
|
489 |
-
|
|
|
|
|
490 |
|
491 |
# Step 1: Upload and Process Documents
|
492 |
st.subheader("Step 1: Upload and Process Documents")
|
|
|
449 |
|
450 |
|
451 |
|
|
|
|
|
|
|
|
|
|
|
452 |
|
453 |
# Sidebar
|
454 |
with st.sidebar:
|
|
|
481 |
key="embedding_model"
|
482 |
)
|
483 |
|
484 |
+
if "rag_system" not in st.session_state or st.session_state.embedding_model != embedding_choice:
|
485 |
+
st.session_state.embedding_model = embedding_choice
|
486 |
+
st.session_state.rag_system = DocumentRAG(embedding_choice=embedding_choice)
|
487 |
|
488 |
# Step 1: Upload and Process Documents
|
489 |
st.subheader("Step 1: Upload and Process Documents")
|