add target display
Browse files- appStore/target.py +2 -2
appStore/target.py
CHANGED
@@ -95,7 +95,7 @@ def target_display():
|
|
95 |
if range_val !=0:
|
96 |
# collecting some statistics
|
97 |
count_target = sum(hits['Target Label'] == 'TARGET')
|
98 |
-
count_netzero = sum(hits['Netzero Label'] == '
|
99 |
count_ghg = sum(hits['GHG Label'] == 'GHG')
|
100 |
count_transport = sum([True if 'Transport' in x else False
|
101 |
for x in hits['Sector Label']])
|
@@ -106,7 +106,7 @@ def target_display():
|
|
106 |
st.write('**NetZero Related Paragraphs**: `{}`'.format(count_netzero))
|
107 |
with c2:
|
108 |
st.write('**GHG Target Related Paragraphs**: `{}`'.format(count_ghg))
|
109 |
-
st.write('**
|
110 |
# st.write('-------------------')
|
111 |
hits = hits.sort_values(by=['Target Score'], ascending=False)
|
112 |
hits = hits.reset_index(drop=True)
|
|
|
95 |
if range_val !=0:
|
96 |
# collecting some statistics
|
97 |
count_target = sum(hits['Target Label'] == 'TARGET')
|
98 |
+
count_netzero = sum(hits['Netzero Label'] == 'NET-ZERO')
|
99 |
count_ghg = sum(hits['GHG Label'] == 'GHG')
|
100 |
count_transport = sum([True if 'Transport' in x else False
|
101 |
for x in hits['Sector Label']])
|
|
|
106 |
st.write('**NetZero Related Paragraphs**: `{}`'.format(count_netzero))
|
107 |
with c2:
|
108 |
st.write('**GHG Target Related Paragraphs**: `{}`'.format(count_ghg))
|
109 |
+
st.write('**Transport Related Paragraphs**: `{}`'.format(count_transport))
|
110 |
# st.write('-------------------')
|
111 |
hits = hits.sort_values(by=['Target Score'], ascending=False)
|
112 |
hits = hits.reset_index(drop=True)
|