Spaces:
Sleeping
Sleeping
style: answer, context, summary arrangement
Browse files
app.py
CHANGED
@@ -86,14 +86,13 @@ def main(question: str):
|
|
86 |
st.session_state[question] = (ctx, summary, answer)
|
87 |
|
88 |
# Summary
|
89 |
-
st.
|
90 |
-
st.
|
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)
|