Skip to content

Commit 47532cd

Browse files
committed
fix result
1 parent 520f666 commit 47532cd

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

src/prophetic-strategies/streamlit_app.py

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,21 @@
2525
st.write("")
2626

2727
if question != "":
28+
2829
result = search(question, db)
2930
st.write_stream(fake_stream(result["content"]))
3031
st.write("")
3132

32-
st.caption(
33-
f'<div style="text-align: right;">{result["book"] if result["book"] else ""}</div>',
34-
unsafe_allow_html=True,
35-
)
36-
st.caption(
37-
f'<div style="text-align: right;">Sentence {result["sentence"] if result["sentence"] else ""}</div>',
38-
unsafe_allow_html=True,
39-
)
33+
reference_book = result["book"]
34+
st.caption(
35+
f'<div style="text-align: right;">{reference_book}</div>',
36+
unsafe_allow_html=True,
37+
)
4038

41-
# st.feedback()
39+
sentence_number = "Sentence " + str(result["sentence"])
40+
st.caption(
41+
f'<div style="text-align: right;">{sentence_number}</div>',
42+
unsafe_allow_html=True,
43+
)
44+
45+
# st.feedback()

0 commit comments

Comments
 (0)