Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -51,7 +51,6 @@ question = st.text_input("Ask a question:")
|
|
51 |
|
52 |
|
53 |
|
54 |
-
|
55 |
if pdf_file is not None:
|
56 |
try:
|
57 |
pdf_bytes = pdf_file.read()
|
@@ -92,7 +91,8 @@ if pdf_file is not None:
|
|
92 |
# Process the question
|
93 |
res = chain({"question": question})
|
94 |
answer = res["answer"]
|
95 |
-
st.write(f"{answer}")
|
|
|
96 |
|
97 |
except Exception as e:
|
98 |
st.error(f"An error occurred: {e}")
|
|
|
51 |
|
52 |
|
53 |
|
|
|
54 |
if pdf_file is not None:
|
55 |
try:
|
56 |
pdf_bytes = pdf_file.read()
|
|
|
91 |
# Process the question
|
92 |
res = chain({"question": question})
|
93 |
answer = res["answer"]
|
94 |
+
# st.write(f"{answer}")
|
95 |
+
st.text(f"{answer}")
|
96 |
|
97 |
except Exception as e:
|
98 |
st.error(f"An error occurred: {e}")
|