Pranav4datasc commited on
Commit
2cab226
·
verified ·
1 Parent(s): c6778df

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -78,7 +78,10 @@ def main():
78
  st.header("Chat with multiple PDFs :books:")
79
  user_question = st.text_input("Ask a question about your documents:")
80
  if user_question:
81
- handle_userinput(user_question)
 
 
 
82
 
83
  with st.sidebar:
84
  st.subheader("Your documents")
 
78
  st.header("Chat with multiple PDFs :books:")
79
  user_question = st.text_input("Ask a question about your documents:")
80
  if user_question:
81
+ if st.session_state.conversation is None:
82
+ st.warning("Please upload and process your PDFs first.")
83
+ else
84
+ handle_userinput(user_question)
85
 
86
  with st.sidebar:
87
  st.subheader("Your documents")