Spaces:
Sleeping
Sleeping
linbojunzi
commited on
Commit
•
f61b805
1
Parent(s):
63ad6cc
Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,8 @@ 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 |
st.write("### Context")
|
22 |
# 拼接 all_context 并高亮 target_context_ids 的句子
|
23 |
all_context = data["all_context"]
|
@@ -40,14 +41,7 @@ def display_dict(data):
|
|
40 |
st.write(data["output"]["perturbed_statement"])
|
41 |
st.write("**Perturbed Explanation:**")
|
42 |
st.write(data["output"]["perturbed_explanation"])
|
43 |
-
|
44 |
-
st.markdown(data['table_html'], unsafe_allow_html=True)
|
45 |
-
st.write("")
|
46 |
-
st.write("")
|
47 |
-
st.write("")
|
48 |
-
st.write("")
|
49 |
-
st.write("")
|
50 |
-
st.write("")
|
51 |
|
52 |
# 主程序
|
53 |
def main():
|
|
|
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 |
st.write("### Context")
|
23 |
# 拼接 all_context 并高亮 target_context_ids 的句子
|
24 |
all_context = data["all_context"]
|
|
|
41 |
st.write(data["output"]["perturbed_statement"])
|
42 |
st.write("**Perturbed Explanation:**")
|
43 |
st.write(data["output"]["perturbed_explanation"])
|
44 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
|
46 |
# 主程序
|
47 |
def main():
|