Spaces:
Runtime error
Runtime error
Commit
·
6a388f4
1
Parent(s):
4ccec59
Revert changes of source (#5)
Browse files- Revert changes of source (66a862a5bbaba5c60f241cba61ba31b65e7eec66)
Co-authored-by: Mayank Jobanputra <notSoNLPnerd@users.noreply.huggingface.co>
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])
|
|
|
|
|
|
|
|
|
|
|
|