samiha123 commited on
Commit
29cf6b3
·
1 Parent(s): 0da9d90

first commit

Browse files
Files changed (3) hide show
  1. requirements.txt +0 -0
  2. src/app.py +3 -2
  3. src/retrieval.py +1 -1
requirements.txt CHANGED
Binary files a/requirements.txt and b/requirements.txt differ
 
src/app.py CHANGED
@@ -122,8 +122,9 @@ if st.session_state.selected_category is None:
122
  unsafe_allow_html=True,
123
  )
124
  selected = st.selectbox(
125
- "", st.session_state.categories, key="category_select", index=0
126
- )
 
127
  if st.button("Valider la catégorie"):
128
  st.session_state.selected_category = selected
129
  st.rerun()
 
122
  unsafe_allow_html=True,
123
  )
124
  selected = st.selectbox(
125
+ "Choisissez une catégorie :", st.session_state.categories, key="category_select", index=0
126
+ )
127
+
128
  if st.button("Valider la catégorie"):
129
  st.session_state.selected_category = selected
130
  st.rerun()
src/retrieval.py CHANGED
@@ -1,6 +1,6 @@
1
 
2
  # hybrid_retrieval.py
3
- from langchain_community.vectorstores import Chroma
4
  from langchain_core.documents import Document
5
  from langchain_huggingface import HuggingFaceEmbeddings
6
  import os
 
1
 
2
  # hybrid_retrieval.py
3
+ from langchain_chroma import Chroma
4
  from langchain_core.documents import Document
5
  from langchain_huggingface import HuggingFaceEmbeddings
6
  import os