Commit
•
66a862a
1
Parent(s):
4ccec59
Revert changes of source
Browse files
app.py
CHANGED
@@ -47,9 +47,3 @@ if st.session_state.get('query') and run_pressed:
|
|
47 |
'\n This may take a few mins and might also fail if OpenAI API server is down.'):
|
48 |
answers_2 = p3.run(ip)
|
49 |
placeholder_retrieval_augmented.markdown(answers_2['results'][0])
|
50 |
-
print(answers_2['invocation_context']['documents'])
|
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)
|
|
|
47 |
'\n This may take a few mins and might also fail if OpenAI API server is down.'):
|
48 |
answers_2 = p3.run(ip)
|
49 |
placeholder_retrieval_augmented.markdown(answers_2['results'][0])
|
|
|
|
|
|
|
|
|
|
|
|