Spaces:
Sleeping
Sleeping
wcy
commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -17,8 +17,15 @@ def display_dict(data):
|
|
| 17 |
st.write(f"**Path:** {data['path']}")
|
| 18 |
st.write(f"**Table ID:** {data['table_id']}")
|
| 19 |
st.write(f"**Section:** {data['section']}")
|
|
|
|
|
|
|
| 20 |
|
| 21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
st.write("### Context")
|
| 23 |
# 拼接 all_context 并高亮 target_context_ids 的句子
|
| 24 |
all_context = data["all_context"]
|
|
@@ -41,8 +48,7 @@ def display_dict(data):
|
|
| 41 |
st.write(data["output"]["perturbed_statement"])
|
| 42 |
st.write("**Perturbed Explanation:**")
|
| 43 |
st.write(data["output"]["perturbed_explanation"])
|
| 44 |
-
|
| 45 |
-
st.markdown(data['table_html'], unsafe_allow_html=True)
|
| 46 |
|
| 47 |
|
| 48 |
|
|
|
|
| 17 |
st.write(f"**Path:** {data['path']}")
|
| 18 |
st.write(f"**Table ID:** {data['table_id']}")
|
| 19 |
st.write(f"**Section:** {data['section']}")
|
| 20 |
+
st.write("### Table")
|
| 21 |
+
st.markdown(data['table_html'], unsafe_allow_html=True)
|
| 22 |
|
| 23 |
|
| 24 |
+
st.write("")
|
| 25 |
+
st.write("")
|
| 26 |
+
st.write("")
|
| 27 |
+
st.write("")
|
| 28 |
+
st.write("")
|
| 29 |
st.write("### Context")
|
| 30 |
# 拼接 all_context 并高亮 target_context_ids 的句子
|
| 31 |
all_context = data["all_context"]
|
|
|
|
| 48 |
st.write(data["output"]["perturbed_statement"])
|
| 49 |
st.write("**Perturbed Explanation:**")
|
| 50 |
st.write(data["output"]["perturbed_explanation"])
|
| 51 |
+
|
|
|
|
| 52 |
|
| 53 |
|
| 54 |
|