cryogenic22 commited on
Commit
874a16b
·
verified ·
1 Parent(s): 299df73

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -1,6 +1,5 @@
1
  #src/app.py
2
  import streamlit as st
3
- import backend
4
  from utils.session_state import initialize_session_state
5
  from utils.database import get_documents, insert_document
6
  from components.chat import display_chat_interface
@@ -9,6 +8,10 @@ from components.knowledge_base import display_knowledge_base
9
  from components.upload import handle_document_upload
10
  from config.settings import APP_SETTINGS
11
 
 
 
 
 
12
 
13
  def main():
14
  st.title("🤖 SYNAPTYX - RFP Analysis Agent")
@@ -27,8 +30,8 @@ def main():
27
  if uploaded_files:
28
  # Only process if files haven't been processed yet
29
  if 'processed_files' not in st.session_state or uploaded_files != st.session_state.processed_files:
 
30
  handle_document_upload(uploaded_files)
31
- # Store the processed files to avoid reprocessing
32
  st.session_state.processed_files = uploaded_files
33
 
34
  # Knowledge Base Section
 
1
  #src/app.py
2
  import streamlit as st
 
3
  from utils.session_state import initialize_session_state
4
  from utils.database import get_documents, insert_document
5
  from components.chat import display_chat_interface
 
8
  from components.upload import handle_document_upload
9
  from config.settings import APP_SETTINGS
10
 
11
+ import streamlit as st
12
+ from components.chat import display_chat_interface
13
+ # Make sure to import explicitly from database.py
14
+ from utils.database import display_vector_store_info, handle_document_upload, verify_vector_store
15
 
16
  def main():
17
  st.title("🤖 SYNAPTYX - RFP Analysis Agent")
 
30
  if uploaded_files:
31
  # Only process if files haven't been processed yet
32
  if 'processed_files' not in st.session_state or uploaded_files != st.session_state.processed_files:
33
+ # Make sure we're using the correct function from database.py
34
  handle_document_upload(uploaded_files)
 
35
  st.session_state.processed_files = uploaded_files
36
 
37
  # Knowledge Base Section