sankar12345 commited on
Commit
80cbdea
1 Parent(s): a195a45

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -58,6 +58,7 @@ def handle_userinput(user_question):
58
  st.error("Conversation not initialized. Please upload PDFs and process them.")
59
  return
60
 
 
61
  response = conversation({'question': user_question})
62
  st.session_state.chat_history = response['chat_history']
63
 
@@ -71,6 +72,7 @@ def handle_userinput(user_question):
71
 
72
 
73
 
 
74
  def main():
75
  load_dotenv()
76
  st.set_page_config(page_title="Chat with multiple PDFs",
 
58
  st.error("Conversation not initialized. Please upload PDFs and process them.")
59
  return
60
 
61
+ print("Conversation:", conversation) # Add this line for debugging
62
  response = conversation({'question': user_question})
63
  st.session_state.chat_history = response['chat_history']
64
 
 
72
 
73
 
74
 
75
+
76
  def main():
77
  load_dotenv()
78
  st.set_page_config(page_title="Chat with multiple PDFs",