ppsingh commited on
Commit
6533513
1 Parent(s): 301af0b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -0
app.py CHANGED
@@ -14,6 +14,7 @@ import appStore.adapmit as adapmit
14
  import appStore.sector as sector
15
  import appStore.subtarget as subtarget
16
  import appStore.tapp_display as tapp_display
 
17
  from PIL import Image
18
  import pkg_resources
19
  installed_packages = pkg_resources.working_set
@@ -119,6 +120,13 @@ if 'key1' in st.session_state:
119
 
120
  if topic == 'Targets':
121
  tapp_display.target_display()
 
 
 
 
 
 
 
122
  elif topic == 'Actions':
123
  tapp_display.action_display()
124
  elif topic == 'Policy':
 
14
  import appStore.sector as sector
15
  import appStore.subtarget as subtarget
16
  import appStore.tapp_display as tapp_display
17
+ import appStore.excel_convert as excel_convert
18
  from PIL import Image
19
  import pkg_resources
20
  installed_packages = pkg_resources.working_set
 
120
 
121
  if topic == 'Targets':
122
  tapp_display.target_display()
123
+ excel_convert.filter_dataframe('target_hits',['keep','text','Sector','Sub-Target','page'])
124
+ with st.sidebar:
125
+ st.write('-------------')
126
+ df_xlsx = excel_convert.to_excel()
127
+ st.download_button(label='📥 Download Result',
128
+ data=df_xlsx ,
129
+ file_name= os.path.splitext(os.path.basename(st.session_state['filename']))[0]+'.xlsx')
130
  elif topic == 'Actions':
131
  tapp_display.action_display()
132
  elif topic == 'Policy':