linbojunzi commited on
Commit
57da881
·
verified ·
1 Parent(s): db12aed

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
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
- st.write("### Table")
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