Update app.py
Browse files
app.py
CHANGED
|
@@ -120,13 +120,8 @@ def main():
|
|
| 120 |
|
| 121 |
st.header("Chat with multiple PDFs :books:")
|
| 122 |
|
| 123 |
-
|
| 124 |
state_manager = StateManager()
|
| 125 |
|
| 126 |
-
if user_question := st.text_input("Ask a question about your documents:"):
|
| 127 |
-
handle_userinput(user_question,state_manager)
|
| 128 |
-
|
| 129 |
-
|
| 130 |
with st.sidebar:
|
| 131 |
st.subheader("Your documents")
|
| 132 |
pdf_docs = st.file_uploader(
|
|
@@ -145,11 +140,8 @@ def main():
|
|
| 145 |
# create conversation chain
|
| 146 |
state_manager.create_conversation_chain()
|
| 147 |
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
|
| 152 |
-
|
| 153 |
|
| 154 |
|
| 155 |
|
|
|
|
| 120 |
|
| 121 |
st.header("Chat with multiple PDFs :books:")
|
| 122 |
|
|
|
|
| 123 |
state_manager = StateManager()
|
| 124 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 125 |
with st.sidebar:
|
| 126 |
st.subheader("Your documents")
|
| 127 |
pdf_docs = st.file_uploader(
|
|
|
|
| 140 |
# create conversation chain
|
| 141 |
state_manager.create_conversation_chain()
|
| 142 |
|
| 143 |
+
if user_question := st.text_input("Ask a question about your documents:"):
|
| 144 |
+
handle_userinput(user_question, state_manager)
|
|
|
|
|
|
|
|
|
|
| 145 |
|
| 146 |
|
| 147 |
|