nkcong206 commited on
Commit
33482bf
1 Parent(s): 58f2cea

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
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
- if not uploaded_file_names:
308
- st.session_state.uploaded_files = set()
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
- "Bạn1 chatbot thông minh",
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ảnmột trợ AI hỗ trợ tuyển sinh và sinh viên",
350
  ),
351
  ("human", "{input}"),
352
  ]