Spaces:
GIZ
/
Running on CPU Upgrade

prashant commited on
Commit
9c7cdba
1 Parent(s): 590f5f3

aggrid column fit content

Browse files
Files changed (1) hide show
  1. appStore/sdg_analysis.py +3 -3
appStore/sdg_analysis.py CHANGED
@@ -135,7 +135,7 @@ def app():
135
 
136
  st.markdown("#### Anything related to SDGs? ####")
137
 
138
- c4, c5, c6 = st.columns([1, 3, 1])
139
 
140
  with c5:
141
  st.pyplot(fig)
@@ -147,13 +147,13 @@ def app():
147
  # st.table(tRkeywordsDf)
148
  AgGrid(tRkeywordsDf, reload_data = False,
149
  update_mode="value_changed",
150
- columns_auto_size_mode = ColumnsAutoSizeMode.FIT_ALL_COLUMNS_TO_VIEW )
151
 
152
  st.markdown("###### Top few SDG Classified paragraph/text results ######")
153
  # c7, c8, c9 = st.columns([1, 10, 1])
154
  # with c8:
155
  AgGrid(df, reload_data = False, update_mode="value_changed",
156
- columns_auto_size_mode = ColumnsAutoSizeMode.FIT_ALL_COLUMNS_TO_VIEW)
157
  else:
158
  st.info("🤔 No document found, please try to upload it at the sidebar!")
159
  logging.warning("Terminated as no document provided")
 
135
 
136
  st.markdown("#### Anything related to SDGs? ####")
137
 
138
+ c4, c5, c6 = st.columns([1, 2, 1])
139
 
140
  with c5:
141
  st.pyplot(fig)
 
147
  # st.table(tRkeywordsDf)
148
  AgGrid(tRkeywordsDf, reload_data = False,
149
  update_mode="value_changed",
150
+ columns_auto_size_mode = ColumnsAutoSizeMode.FIT_CONTENTS )
151
 
152
  st.markdown("###### Top few SDG Classified paragraph/text results ######")
153
  # c7, c8, c9 = st.columns([1, 10, 1])
154
  # with c8:
155
  AgGrid(df, reload_data = False, update_mode="value_changed",
156
+ columns_auto_size_mode = ColumnsAutoSizeMode.FIT_CONTENTS)
157
  else:
158
  st.info("🤔 No document found, please try to upload it at the sidebar!")
159
  logging.warning("Terminated as no document provided")