RaviChandera commited on
Commit
f02caf5
·
1 Parent(s): fca6b77

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -84,7 +84,10 @@ def main():
84
  st.header("Chat with multiple PDFs :books:")
85
  user_question = st.text_input("Ask a question about your documents:")
86
  if user_question:
87
- handle_userinput(user_question)
 
 
 
88
 
89
  with st.sidebar:
90
  st.subheader("Your documents")
 
84
  st.header("Chat with multiple PDFs :books:")
85
  user_question = st.text_input("Ask a question about your documents:")
86
  if user_question:
87
+ if st.session_state.conversation is not None:
88
+ handle_userinput(user_question)
89
+ else:
90
+ st.write("Please upload and process PDFs first.")
91
 
92
  with st.sidebar:
93
  st.subheader("Your documents")