Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -91,8 +91,9 @@ if pdf_file is not None:
|
|
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}")
|
|
|
91 |
# Process the question
|
92 |
res = chain({"question": question})
|
93 |
answer = res["answer"]
|
94 |
+
st.write_stream(f"{answer}")
|
95 |
# st.write(f"{answer}")
|
96 |
+
# st.text(f"{answer}")
|
97 |
|
98 |
except Exception as e:
|
99 |
st.error(f"An error occurred: {e}")
|