ppsingh commited on
Commit
ed9d589
1 Parent(s): 5d9e2f7

target check

Browse files
Files changed (2) hide show
  1. app.py +4 -2
  2. utils/target_classifier.py +3 -3
app.py CHANGED
@@ -53,8 +53,10 @@ with st.expander("ℹ️ - About this app", expanded=False):
53
 
54
  """)
55
  st.write("")
56
- apps = [processing.app, target_extraction.app, netzero.app, ghg.app,
57
- sector.app, policyaction.app, indicator.app, adapmit.app]
 
 
58
  multiplier_val =1/len(apps)
59
  if st.button("Analyze Document"):
60
  prg = st.progress(0.0)
 
53
 
54
  """)
55
  st.write("")
56
+ apps = [processing.app, target_extraction.app]
57
+
58
+ #netzero.app, ghg.app,
59
+ # sector.app, policyaction.app, indicator.app, adapmit.app]
60
  multiplier_val =1/len(apps)
61
  if st.button("Analyze Document"):
62
  prg = st.progress(0.0)
utils/target_classifier.py CHANGED
@@ -79,11 +79,11 @@ def target_classification(haystack_doc:pd.DataFrame,
79
  l[0]['score']) for l in results]
80
 
81
 
82
- df1 = DataFrame(labels_, columns=["Target Label","Relevancy"])
83
  df = pd.concat([haystack_doc,df1],axis=1)
84
 
85
- df = df.sort_values(by="Relevancy", ascending=False).reset_index(drop=True)
86
  df.index += 1
87
- df['Label_def'] = df['Target Label'].apply(lambda i: _lab_dict[i])
88
 
89
  return df
 
79
  l[0]['score']) for l in results]
80
 
81
 
82
+ df1 = DataFrame(labels_, columns=["Target Label","Target Score"])
83
  df = pd.concat([haystack_doc,df1],axis=1)
84
 
85
+ df = df.sort_values(by="Target Score", ascending=False).reset_index(drop=True)
86
  df.index += 1
87
+ # df['Label_def'] = df['Target Label'].apply(lambda i: _lab_dict[i])
88
 
89
  return df