Davide Panza commited on
Commit
52105b7
·
verified ·
1 Parent(s): da53fe0

Update app/main.py

Browse files
Files changed (1) hide show
  1. app/main.py +2 -2
app/main.py CHANGED
@@ -28,7 +28,7 @@ st.sidebar.html("""
28
 
29
  # Initialize chromadb variables
30
  EMBEDDING_MODEL = "all-MiniLM-L6-v2"
31
- model_path = "./chromadb_model"
32
 
33
  # Set-up Logger
34
  st.session_state.use_logger = False
@@ -76,7 +76,7 @@ else:
76
  process_pdf() # Extract text from PDF
77
 
78
  with st.spinner("Extracting information from the text..."):
79
- client, embedding_func = initialize_chromadb(EMBEDDING_MODEL)
80
  whole_text_collection = initialize_collection(client, embedding_func, "whole_text_chunks")
81
  update_collection(
82
  whole_text_collection,
 
28
 
29
  # Initialize chromadb variables
30
  EMBEDDING_MODEL = "all-MiniLM-L6-v2"
31
+ model_path = get_model_path()
32
 
33
  # Set-up Logger
34
  st.session_state.use_logger = False
 
76
  process_pdf() # Extract text from PDF
77
 
78
  with st.spinner("Extracting information from the text..."):
79
+ client, embedding_func = initialize_chromadb(EMBEDDING_MODEL, model_path)
80
  whole_text_collection = initialize_collection(client, embedding_func, "whole_text_chunks")
81
  update_collection(
82
  whole_text_collection,