ppsingh commited on
Commit
0193c81
1 Parent(s): 03843da

Update appStore/tapp_display.py

Browse files
Files changed (1) hide show
  1. appStore/tapp_display.py +5 -3
appStore/tapp_display.py CHANGED
@@ -52,7 +52,8 @@ def target_display():
52
  count_mitigation = sum(hits['MitigationLabel'] == True)
53
  count_adaptation = sum(hits['AdaptationLabel'] == True)
54
 
55
-
 
56
  c1, c2 = st.columns([1,1])
57
  with c1:
58
  st.write('**Target Related Paragraphs**: `{}`'.format(count_target))
@@ -64,7 +65,7 @@ def target_display():
64
  st.write('**Adaptation Related Paragraphs**: `{}`'.format(count_adaptation))
65
  st.write('----------------')
66
 
67
- st.markdown("<h4 style='text-align: left; color: black;'> Sectoral Target Related Paragraphs Count </h4>", unsafe_allow_html=True)
68
 
69
  cols = list(hits.columns)
70
  sector_cols = list(set(cols) - {'TargetLabel','MitigationLabel','AdaptationLabel','GHGLabel','NetzeroLabel','NonGHGLabel','text','keep','page'})
@@ -78,7 +79,8 @@ def target_display():
78
  sector_df = pd.DataFrame.from_dict(placeholder)
79
  fig = px.bar(sector_df, x='Sector', y='Count')
80
  st.plotly_chart(fig,use_container_width= True)
81
-
 
82
  st.dataframe(hits[['text','page','keep','MitigationLabel','AdaptationLabel','Sector','Sub-Target',]])
83
  else:
84
  st.info("🤔 No Targets Found")
 
52
  count_mitigation = sum(hits['MitigationLabel'] == True)
53
  count_adaptation = sum(hits['AdaptationLabel'] == True)
54
 
55
+ st.markdown("<h4 style='text-align: left; color: black;'> Sectoral Target Related Paragraphs Statistics </h4>", unsafe_allow_html=True)
56
+
57
  c1, c2 = st.columns([1,1])
58
  with c1:
59
  st.write('**Target Related Paragraphs**: `{}`'.format(count_target))
 
65
  st.write('**Adaptation Related Paragraphs**: `{}`'.format(count_adaptation))
66
  st.write('----------------')
67
 
68
+
69
 
70
  cols = list(hits.columns)
71
  sector_cols = list(set(cols) - {'TargetLabel','MitigationLabel','AdaptationLabel','GHGLabel','NetzeroLabel','NonGHGLabel','text','keep','page'})
 
79
  sector_df = pd.DataFrame.from_dict(placeholder)
80
  fig = px.bar(sector_df, x='Sector', y='Count')
81
  st.plotly_chart(fig,use_container_width= True)
82
+ st.write('---------------------------')
83
+ st.write('Explore the data')
84
  st.dataframe(hits[['text','page','keep','MitigationLabel','AdaptationLabel','Sector','Sub-Target',]])
85
  else:
86
  st.info("🤔 No Targets Found")