target stats
Browse files- appStore/target.py +3 -4
appStore/target.py
CHANGED
@@ -84,10 +84,9 @@ def app():
|
|
84 |
def target_display():
|
85 |
if 'key1' in st.session_state:
|
86 |
df = st.session_state.key1
|
87 |
-
st.caption(""" **{}**
|
88 |
-
(page number is **True** only for pdf files)"""\
|
89 |
.format(os.path.basename(st.session_state['filename']),
|
90 |
-
|
91 |
hits = df[df['Target Label'] == 'TARGET']
|
92 |
range_val = min(5,len(hits))
|
93 |
if range_val !=0:
|
@@ -105,7 +104,7 @@ def target_display():
|
|
105 |
with c2:
|
106 |
st.write('**GHG Target Related Paragraphs**: `{}`'.format(count_ghg))
|
107 |
st.write('**Economy-wide Related Paragraphs**: `{}`'.format(count_economy))
|
108 |
-
st.write('-------------------')
|
109 |
hits = hits.sort_values(by=['Target Score'], ascending=False)
|
110 |
# netzerohit = hits[hits['Netzero Label'] == 'NETZERO']
|
111 |
# if not netzerohit.empty:
|
|
|
84 |
def target_display():
|
85 |
if 'key1' in st.session_state:
|
86 |
df = st.session_state.key1
|
87 |
+
st.caption(""" **{}** is splitted into **{}** paragraphs/text chunks."""\
|
|
|
88 |
.format(os.path.basename(st.session_state['filename']),
|
89 |
+
len(df)))
|
90 |
hits = df[df['Target Label'] == 'TARGET']
|
91 |
range_val = min(5,len(hits))
|
92 |
if range_val !=0:
|
|
|
104 |
with c2:
|
105 |
st.write('**GHG Target Related Paragraphs**: `{}`'.format(count_ghg))
|
106 |
st.write('**Economy-wide Related Paragraphs**: `{}`'.format(count_economy))
|
107 |
+
# st.write('-------------------')
|
108 |
hits = hits.sort_values(by=['Target Score'], ascending=False)
|
109 |
# netzerohit = hits[hits['Netzero Label'] == 'NETZERO']
|
110 |
# if not netzerohit.empty:
|