seonglae commited on
Commit
c5fe6e8
1 Parent(s): 1a11e20

style: answer, context, summary arrangement

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -86,14 +86,13 @@ def main(question: str):
86
  st.session_state[question] = (ctx, summary, answer)
87
 
88
  # Summary
89
- st.markdown(answer)
90
- st.write("## Summary")
91
  st.markdown(
92
  f"<h6 style='padding: 0'>{summary}</h6><hr style='margin: 1em 0px'>", unsafe_allow_html=True)
 
93
  st.markdown(ctx)
94
 
95
- st.write(f"{question}", unsafe_allow_html=True)
96
-
97
 
98
  if question:
99
  main(question)
 
86
  st.session_state[question] = (ctx, summary, answer)
87
 
88
  # Summary
89
+ st.write(f"### Answer: {answer}")
90
+ st.markdown('<h5>Summarized Context</h5>', unsafe_allow_html=True)
91
  st.markdown(
92
  f"<h6 style='padding: 0'>{summary}</h6><hr style='margin: 1em 0px'>", unsafe_allow_html=True)
93
+ st.markdown('<h5>Original Context</h5>', unsafe_allow_html=True)
94
  st.markdown(ctx)
95
 
 
 
96
 
97
  if question:
98
  main(question)