Spaces:
Runtime error
Runtime error
Revert changes of source
#5
by
notSoNLPnerd
- opened
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])
|
|
|
|
|
|
|
|
|
|
|
|