File tree Expand file tree Collapse file tree 1 file changed +13
-9
lines changed Expand file tree Collapse file tree 1 file changed +13
-9
lines changed Original file line number Diff line number Diff line change 2525st .write ("" )
2626
2727if 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()
You can’t perform that action at this time.
0 commit comments