zahraanaji commited on
Commit
ba5c28f
·
verified ·
1 Parent(s): 370611f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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}")