Spaces:
Sleeping
Sleeping
update
Browse files
app.py
CHANGED
@@ -346,10 +346,9 @@ def compute_rag_chain(_model, _embd, docs_texts):
|
|
346 |
|
347 |
if st.session_state.uploaded_files:
|
348 |
if st.session_state.gemini_api is not None:
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
st.session_state.rag = compute_rag_chain(st.session_state.model, st.session_state.embd, docs_texts)
|
353 |
|
354 |
if st.session_state.gemini_api is not None:
|
355 |
if st.session_state.llm is None:
|
|
|
346 |
|
347 |
if st.session_state.uploaded_files:
|
348 |
if st.session_state.gemini_api is not None:
|
349 |
+
if st.session_state.rag is None:
|
350 |
+
docs_texts = [d.page_content for d in documents]
|
351 |
+
st.session_state.rag = compute_rag_chain(st.session_state.model, st.session_state.embd, docs_texts)
|
|
|
352 |
|
353 |
if st.session_state.gemini_api is not None:
|
354 |
if st.session_state.llm is None:
|