Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -303,10 +303,9 @@ with st.sidebar:
|
|
303 |
if new_docs:
|
304 |
st.session_state.uploaded_files = uploaded_file_names
|
305 |
st.session_state.rag = None
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
st.session_state.rag = None
|
310 |
|
311 |
if st.session_state.uploaded_files:
|
312 |
if st.session_state.gemini_api is not None:
|
@@ -347,7 +346,7 @@ if st.session_state.gemini_api is not None:
|
|
347 |
[
|
348 |
(
|
349 |
"system",
|
350 |
-
"
|
351 |
),
|
352 |
("human", "{input}"),
|
353 |
]
|
|
|
303 |
if new_docs:
|
304 |
st.session_state.uploaded_files = uploaded_file_names
|
305 |
st.session_state.rag = None
|
306 |
+
else:
|
307 |
+
st.session_state.uploaded_files = set()
|
308 |
+
st.session_state.rag = None
|
|
|
309 |
|
310 |
if st.session_state.uploaded_files:
|
311 |
if st.session_state.gemini_api is not None:
|
|
|
346 |
[
|
347 |
(
|
348 |
"system",
|
349 |
+
"Bản là một trợ lí AI hỗ trợ tuyển sinh và sinh viên",
|
350 |
),
|
351 |
("human", "{input}"),
|
352 |
]
|