leavoigt commited on
Commit
e10deaa
1 Parent(s): 20009c6

Update appStore/target.py

Browse files
Files changed (1) hide show
  1. appStore/target.py +4 -2
appStore/target.py CHANGED
@@ -29,8 +29,8 @@ params = get_classifier_params(classifier_identifier)
29
 
30
  ## Labels dictionary ###
31
  _lab_dict = {
32
- 'NEGATIVE':'NO TARGET INFO',
33
- 'TARGET':'TARGET',
34
  }
35
 
36
  # @st.cache_data
@@ -138,6 +138,7 @@ def filter_for_tracs(df):
138
  return df
139
 
140
  def target_display():
 
141
  if 'key1' in st.session_state:
142
  df = st.session_state.key1
143
  st.caption(""" **{}** is splitted into **{}** paragraphs/text chunks."""\
@@ -146,6 +147,7 @@ def target_display():
146
  hits = df[df['Target Label'] == 'TARGET'].reset_index(drop=True)
147
  range_val = min(5,len(hits))
148
  if range_val !=0:
 
149
  # collecting some statistics
150
  count_target = sum(hits['Target Label'] == 'TARGET')
151
  count_netzero = sum(hits['Netzero Label'] == 'NETZERO TARGET')
 
29
 
30
  ## Labels dictionary ###
31
  _lab_dict = {
32
+ '0':'NO',
33
+ '1':'YES',
34
  }
35
 
36
  # @st.cache_data
 
138
  return df
139
 
140
  def target_display():
141
+
142
  if 'key1' in st.session_state:
143
  df = st.session_state.key1
144
  st.caption(""" **{}** is splitted into **{}** paragraphs/text chunks."""\
 
147
  hits = df[df['Target Label'] == 'TARGET'].reset_index(drop=True)
148
  range_val = min(5,len(hits))
149
  if range_val !=0:
150
+
151
  # collecting some statistics
152
  count_target = sum(hits['Target Label'] == 'TARGET')
153
  count_netzero = sum(hits['Netzero Label'] == 'NETZERO TARGET')