Ilyas KHIAT commited on
Commit
5abd53b
·
1 Parent(s): 3533447
agents_page/recommended_agent.py CHANGED
@@ -73,7 +73,7 @@ def handle_display_models(index, models_names):
73
 
74
  def recommended_agent_main():
75
  st.title("Agents recommandés")
76
- models_names = ["GPT-4o", "GPT-4o-mini"]
77
 
78
  if "chat_history" not in st.session_state:
79
  st.session_state.chat_history = [
 
73
 
74
  def recommended_agent_main():
75
  st.title("Agents recommandés")
76
+ models_names = ["GPT-4o", "GPT-4o-mini","Mistral Nemo (FR)","Mistral Large 2 (FR)"]
77
 
78
  if "chat_history" not in st.session_state:
79
  st.session_state.chat_history = [
audit_page/audit.py CHANGED
@@ -112,6 +112,10 @@ def handle_audit(uploaded_file,type:str):
112
  with st.spinner("Analyse du document..."):
113
  st.session_state.audit = {}
114
  st.session_state.audit = audit_descriptif_pdf(uploaded_file,100)
 
 
 
 
115
  audit = st.session_state.audit["audit"]
116
  #global audit
117
  audit_simplified = {
@@ -229,7 +233,5 @@ def audit_main():
229
  if "audit" in st.session_state and st.session_state.audit != {}:
230
  display_audit(col1)
231
  handle_display_content(col2)
232
- vectorstore = setup_rag(st.session_state.audit_simplified["type de fichier"],st.session_state.audit["content"])
233
- st.session_state.vectorstore = vectorstore
234
-
235
  audit_main()
 
112
  with st.spinner("Analyse du document..."):
113
  st.session_state.audit = {}
114
  st.session_state.audit = audit_descriptif_pdf(uploaded_file,100)
115
+ with st.spinner("Préparation de la DB..."):
116
+ vectorstore = setup_rag(type,st.session_state.audit["content"])
117
+ st.session_state.vectorstore = vectorstore
118
+
119
  audit = st.session_state.audit["audit"]
120
  #global audit
121
  audit_simplified = {
 
233
  if "audit" in st.session_state and st.session_state.audit != {}:
234
  display_audit(col1)
235
  handle_display_content(col2)
236
+
 
 
237
  audit_main()