ppsingh commited on
Commit
d7ac6f9
1 Parent(s): d30004c
Files changed (1) hide show
  1. appStore/target.py +4 -3
appStore/target.py CHANGED
@@ -116,7 +116,7 @@ def target_display():
116
 
117
  hits = hits.sort_values(by=['Relevancy'], ascending=False)
118
  netzerohit = hits[hits['Netzero Label'] == 'NETZERO']
119
- if not netzerohit.empty():
120
  netzero = netzero.sort_values(by = ['Netzero Score'], ascending = False)
121
  st.markdown("###### Netzero paragraph ######")
122
  st.write('** Text `page {}`: {}'.format(netzerohit.iloc[i]['page'],
@@ -131,9 +131,10 @@ def target_display():
131
  for i in range(range_val):
132
  # the page number reflects the page that contains the main paragraph
133
  # according to split limit, the overlapping part can be on a separate page
134
- st.write('**Result {}** (Relevancy Score: {:.2f}): `page {}`, `Sector: {}`'\
 
135
  .format(i+1,hits.iloc[i]['Relevancy'],
136
- hits.iloc[i]['page'], hits.iloc[i]['Sector Label'],
137
  ))
138
  st.write("\t Text: \t{}".format(hits.iloc[i]['text'].replace("\n", " ")))
139
  else:
 
116
 
117
  hits = hits.sort_values(by=['Relevancy'], ascending=False)
118
  netzerohit = hits[hits['Netzero Label'] == 'NETZERO']
119
+ if not netzerohit.empty:
120
  netzero = netzero.sort_values(by = ['Netzero Score'], ascending = False)
121
  st.markdown("###### Netzero paragraph ######")
122
  st.write('** Text `page {}`: {}'.format(netzerohit.iloc[i]['page'],
 
131
  for i in range(range_val):
132
  # the page number reflects the page that contains the main paragraph
133
  # according to split limit, the overlapping part can be on a separate page
134
+ st.write('**Result {}** (Relevancy Score: {:.2f}): `page {}`, `Sector: {}`,\
135
+ `GHG:`'\
136
  .format(i+1,hits.iloc[i]['Relevancy'],
137
+ hits.iloc[i]['page'], hits.iloc[i]['Sector Label']
138
  ))
139
  st.write("\t Text: \t{}".format(hits.iloc[i]['text'].replace("\n", " ")))
140
  else: