Update app.py
Browse files
app.py
CHANGED
@@ -13,6 +13,7 @@ import appStore.tapp as tapp_extraction
|
|
13 |
import appStore.adapmit as adapmit
|
14 |
import appStore.sector as sector
|
15 |
import appStore.subtarget as subtarget
|
|
|
16 |
from PIL import Image
|
17 |
import pkg_resources
|
18 |
installed_packages = pkg_resources.working_set
|
@@ -110,4 +111,22 @@ if st.button("Analyze Document"):
|
|
110 |
for i,func in enumerate(apps):
|
111 |
func()
|
112 |
prg.progress((i+1)*multiplier_val)
|
113 |
-
prg.empty()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
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
|
|
|
111 |
for i,func in enumerate(apps):
|
112 |
func()
|
113 |
prg.progress((i+1)*multiplier_val)
|
114 |
+
prg.empty()
|
115 |
+
|
116 |
+
if 'key1' in st.session_state:
|
117 |
+
tapp_display.targets()
|
118 |
+
with st.sidebar:
|
119 |
+
topic = st.radio(
|
120 |
+
"Which category you want to explore?",
|
121 |
+
('Targets', 'Mitigation','Adaptation'))
|
122 |
+
|
123 |
+
if topic == 'Targets':
|
124 |
+
tapp_display.target_display()
|
125 |
+
|
126 |
+
#excel_convert.filter_dataframe('target_hits',['keep','text','Parameter','page'])
|
127 |
+
#with st.sidebar:
|
128 |
+
# st.write('-------------')
|
129 |
+
# df_xlsx = excel_convert.to_excel()
|
130 |
+
# st.download_button(label='📥 Download Result',
|
131 |
+
# data=df_xlsx ,
|
132 |
+
# file_name= os.path.splitext(os.path.basename(st.session_state['filename']))[0]+'.xlsx')
|