Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -112,8 +112,8 @@ def handle_userinput(user_question):
|
|
| 112 |
|
| 113 |
def main():
|
| 114 |
load_dotenv()
|
| 115 |
-
st.set_page_config(page_title="
|
| 116 |
-
page_icon=":
|
| 117 |
st.write(css, unsafe_allow_html=True)
|
| 118 |
|
| 119 |
if "conversation" not in st.session_state:
|
|
@@ -121,11 +121,7 @@ def main():
|
|
| 121 |
if "chat_history" not in st.session_state:
|
| 122 |
st.session_state.chat_history = None
|
| 123 |
|
| 124 |
-
|
| 125 |
-
st.header("Assign8: Chat with multiple Files :")
|
| 126 |
-
=======
|
| 127 |
-
st.header("Assign 8 -Chat with multiple Files :")
|
| 128 |
-
>>>>>>> eee37261f0a756aa7ad43f502da4241637d89427
|
| 129 |
user_question = st.text_input("Ask a question about your documents:")
|
| 130 |
if user_question:
|
| 131 |
handle_userinput(user_question)
|
|
@@ -137,7 +133,7 @@ def main():
|
|
| 137 |
|
| 138 |
st.subheader("Your documents")
|
| 139 |
docs = st.file_uploader(
|
| 140 |
-
"Upload your
|
| 141 |
if st.button("Process"):
|
| 142 |
with st.spinner("Processing"):
|
| 143 |
# get pdf text
|
|
|
|
| 112 |
|
| 113 |
def main():
|
| 114 |
load_dotenv()
|
| 115 |
+
st.set_page_config(page_title="Chat with multiple Files",
|
| 116 |
+
page_icon=":books:")
|
| 117 |
st.write(css, unsafe_allow_html=True)
|
| 118 |
|
| 119 |
if "conversation" not in st.session_state:
|
|
|
|
| 121 |
if "chat_history" not in st.session_state:
|
| 122 |
st.session_state.chat_history = None
|
| 123 |
|
| 124 |
+
st.header("Assign 8 - Chat with multiple Files :")
|
|
|
|
|
|
|
|
|
|
|
|
|
| 125 |
user_question = st.text_input("Ask a question about your documents:")
|
| 126 |
if user_question:
|
| 127 |
handle_userinput(user_question)
|
|
|
|
| 133 |
|
| 134 |
st.subheader("Your documents")
|
| 135 |
docs = st.file_uploader(
|
| 136 |
+
"Upload your PDFs here and click on 'Process'", accept_multiple_files=True)
|
| 137 |
if st.button("Process"):
|
| 138 |
with st.spinner("Processing"):
|
| 139 |
# get pdf text
|