ppsingh commited on
Commit
6118d20
1 Parent(s): 8f06a72
Files changed (2) hide show
  1. app.py +1 -1
  2. appStore/target.py +2 -2
app.py CHANGED
@@ -47,7 +47,7 @@ with st.expander("ℹ️ - About this app", expanded=False):
47
  apps = [processing.app, target_extraction.app, netzero.app, ghg.app,
48
  sector.app, adapmit.app]
49
  multiplier_val =1/len(apps)
50
- if st.button("Get the work done"):
51
  prg = st.progress(0.0)
52
  for i,func in enumerate(apps):
53
  func()
 
47
  apps = [processing.app, target_extraction.app, netzero.app, ghg.app,
48
  sector.app, adapmit.app]
49
  multiplier_val =1/len(apps)
50
+ if st.button("Analyze Document"):
51
  prg = st.progress(0.0)
52
  for i,func in enumerate(apps):
53
  func()
appStore/target.py CHANGED
@@ -125,8 +125,8 @@ def target_display():
125
  if not netzerohit.empty:
126
  netzerohit = netzerohit.sort_values(by = ['Netzero Score'], ascending = False)
127
  st.markdown("###### Netzero paragraph ######")
128
- st.write('** Text `page {}`: {}'.format(netzerohit.iloc[i]['page'],
129
- netzerohit.iloc[i]['text'].replace("\n", " ")))
130
  st.write("")
131
  else:
132
  st.info("🤔 No Netzero paragraph found")
 
125
  if not netzerohit.empty:
126
  netzerohit = netzerohit.sort_values(by = ['Netzero Score'], ascending = False)
127
  st.markdown("###### Netzero paragraph ######")
128
+ st.write('** Text `page {}`: {}'.format(netzerohit.iloc[0]['page'],
129
+ netzerohit.iloc[0]['text'].replace("\n", " ")))
130
  st.write("")
131
  else:
132
  st.info("🤔 No Netzero paragraph found")