Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -56,7 +56,7 @@ def user_input(user_question, api_key):
|
|
| 56 |
docs = new_db.similarity_search(user_question)
|
| 57 |
chain = get_conversational_chain()
|
| 58 |
response = chain({"input_documents": docs, "question": user_question}, return_only_outputs=True)
|
| 59 |
-
st.success("
|
| 60 |
st.write("Replies:")
|
| 61 |
if isinstance(response["output_text"], str):
|
| 62 |
response_list = [response["output_text"]]
|
|
@@ -93,7 +93,7 @@ def main():
|
|
| 93 |
get_vector_store(text_chunks, api_key)
|
| 94 |
st.success("Processing Complete")
|
| 95 |
|
| 96 |
-
if st.success("
|
| 97 |
with col1:
|
| 98 |
user_question = st.text_input("Ask a question from the Docs")
|
| 99 |
if user_question:
|
|
|
|
| 56 |
docs = new_db.similarity_search(user_question)
|
| 57 |
chain = get_conversational_chain()
|
| 58 |
response = chain({"input_documents": docs, "question": user_question}, return_only_outputs=True)
|
| 59 |
+
st.success("Processed")
|
| 60 |
st.write("Replies:")
|
| 61 |
if isinstance(response["output_text"], str):
|
| 62 |
response_list = [response["output_text"]]
|
|
|
|
| 93 |
get_vector_store(text_chunks, api_key)
|
| 94 |
st.success("Processing Complete")
|
| 95 |
|
| 96 |
+
if pdf_docs and st.success("Processed"):
|
| 97 |
with col1:
|
| 98 |
user_question = st.text_input("Ask a question from the Docs")
|
| 99 |
if user_question:
|