ppsingh commited on
Commit
cc525c6
1 Parent(s): 31fa6e4

Downlaod Vlaidation

Browse files
Files changed (1) hide show
  1. appStore/target.py +4 -3
appStore/target.py CHANGED
@@ -101,14 +101,15 @@ def app():
101
  def target_display():
102
  if 'key1' in st.session_state:
103
  df = st.session_state.key1
104
-
105
- hits = df[df['Target Label'] == 'TARGET']
106
  _lab_dict = {
107
  'LABEL_0':'NEGATIVE',
108
  'LABEL_1':'NOT GHG',
109
  'LABEL_2':'GHG',
110
  }
111
- hits['GHG Label'] = hits['GHG Label'].apply(lambda i: _lab_dict[i])
 
 
112
  range_val = min(5,len(hits))
113
  if range_val !=0:
114
  count_target = sum(hits['Target Label'] == 'TARGET')
 
101
  def target_display():
102
  if 'key1' in st.session_state:
103
  df = st.session_state.key1
104
+
 
105
  _lab_dict = {
106
  'LABEL_0':'NEGATIVE',
107
  'LABEL_1':'NOT GHG',
108
  'LABEL_2':'GHG',
109
  }
110
+ df['GHG Label'] = df['GHG Label'].apply(lambda i: _lab_dict[i])
111
+ hits = df[df['Target Label'] == 'TARGET']
112
+ # hits['GHG Label'] = hits['GHG Label'].apply(lambda i: _lab_dict[i])
113
  range_val = min(5,len(hits))
114
  if range_val !=0:
115
  count_target = sum(hits['Target Label'] == 'TARGET')