notSoNLPnerd commited on
Commit
3e953b1
1 Parent(s): 2b3e43e

max 2000 chars

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -51,5 +51,5 @@ if st.session_state.get('query') and run_pressed:
51
  with st.expander("See source:"):
52
  src = answers_2['invocation_context']['documents'][0].replace("$", "\$")
53
  split_marker = "\n\n" if "\n\n" in src else "\n"
54
- src = " ".join(src.split(split_marker)[:10])
55
  st.write(src)
 
51
  with st.expander("See source:"):
52
  src = answers_2['invocation_context']['documents'][0].replace("$", "\$")
53
  split_marker = "\n\n" if "\n\n" in src else "\n"
54
+ src = " ".join(src.split(split_marker))[0:2000] + "..."
55
  st.write(src)