Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
|
|
|
|
|
|
|
|
|
| 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")
|