Update appStore/iki_sheets.py
Browse files- appStore/iki_sheets.py +5 -6
appStore/iki_sheets.py
CHANGED
@@ -47,9 +47,8 @@ def netzero_display():
|
|
47 |
|
48 |
c1, c2 = st.columns([1,1])
|
49 |
with c1:
|
50 |
-
st.write('**Target Paragraphs**: `{}`'.format(count_target))
|
51 |
-
with c2:
|
52 |
st.write('**NetZero Related Paragraphs**: `{}`'.format(count_netzero))
|
|
|
53 |
st.write('----------------')
|
54 |
st.dataframe(hits[['keep','text','Parameter','page']])
|
55 |
else:
|
@@ -133,7 +132,7 @@ def target_display():
|
|
133 |
|
134 |
c1, c2 = st.columns([1,1])
|
135 |
with c1:
|
136 |
-
st.write('**Target Paragraphs**: `{}`'.format(count_target))
|
137 |
st.write('**Transport Target Related Paragraphs**: `{}`'.format(count_transport))
|
138 |
with c2:
|
139 |
st.write('**GHG Target Related Paragraphs**: `{}`'.format(count_ghg))
|
@@ -178,7 +177,7 @@ def mitigation_display():
|
|
178 |
|
179 |
c1, c2 = st.columns([1,1])
|
180 |
with c1:
|
181 |
-
st.write('**Mitgation Paragraphs**: `{}`'.format(count_mitigation))
|
182 |
st.write('**Transport Action Related Paragraphs**: `{}`'.format(count_action))
|
183 |
with c2:
|
184 |
st.write('**Transport Policy Related Paragraphs**: `{}`'.format(count_policy))
|
@@ -207,7 +206,7 @@ def adaptation_display():
|
|
207 |
.format(os.path.basename(st.session_state['filename']),
|
208 |
len(st.session_state['key0'])))
|
209 |
|
210 |
-
hits = st.session_state['
|
211 |
if len(hits) !=0:
|
212 |
# collecting some statistics
|
213 |
count_adaptation = sum(hits['AdaptationLabel'] == True)
|
@@ -217,7 +216,7 @@ def adaptation_display():
|
|
217 |
|
218 |
c1, c2 = st.columns([1,1])
|
219 |
with c1:
|
220 |
-
st.write('**Adaptation Paragraphs**: `{}`'.format(count_adaptation))
|
221 |
st.write('**Transport Action Related Paragraphs**: `{}`'.format(count_action))
|
222 |
with c2:
|
223 |
st.write('**Transport Policy Related Paragraphs**: `{}`'.format(count_policy))
|
|
|
47 |
|
48 |
c1, c2 = st.columns([1,1])
|
49 |
with c1:
|
|
|
|
|
50 |
st.write('**NetZero Related Paragraphs**: `{}`'.format(count_netzero))
|
51 |
+
|
52 |
st.write('----------------')
|
53 |
st.dataframe(hits[['keep','text','Parameter','page']])
|
54 |
else:
|
|
|
132 |
|
133 |
c1, c2 = st.columns([1,1])
|
134 |
with c1:
|
135 |
+
st.write('**Target Related Paragraphs**: `{}`'.format(count_target))
|
136 |
st.write('**Transport Target Related Paragraphs**: `{}`'.format(count_transport))
|
137 |
with c2:
|
138 |
st.write('**GHG Target Related Paragraphs**: `{}`'.format(count_ghg))
|
|
|
177 |
|
178 |
c1, c2 = st.columns([1,1])
|
179 |
with c1:
|
180 |
+
st.write('**Transport Mitgation Related Paragraphs**: `{}`'.format(count_mitigation))
|
181 |
st.write('**Transport Action Related Paragraphs**: `{}`'.format(count_action))
|
182 |
with c2:
|
183 |
st.write('**Transport Policy Related Paragraphs**: `{}`'.format(count_policy))
|
|
|
206 |
.format(os.path.basename(st.session_state['filename']),
|
207 |
len(st.session_state['key0'])))
|
208 |
|
209 |
+
hits = st.session_state['adaptation_hits']
|
210 |
if len(hits) !=0:
|
211 |
# collecting some statistics
|
212 |
count_adaptation = sum(hits['AdaptationLabel'] == True)
|
|
|
216 |
|
217 |
c1, c2 = st.columns([1,1])
|
218 |
with c1:
|
219 |
+
st.write('**Transport Adaptation Related Paragraphs**: `{}`'.format(count_adaptation))
|
220 |
st.write('**Transport Action Related Paragraphs**: `{}`'.format(count_action))
|
221 |
with c2:
|
222 |
st.write('**Transport Policy Related Paragraphs**: `{}`'.format(count_policy))
|