Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
-
#import appStore.identifier as target_identifier
|
| 2 |
import appStore.doc_processing as processing
|
|
|
|
| 3 |
from utils.uploadAndExample import add_upload
|
| 4 |
import streamlit as st
|
| 5 |
|
|
@@ -58,31 +58,12 @@ with st.expander("ℹ️ - About this app", expanded=False):
|
|
| 58 |
|
| 59 |
st.write("")
|
| 60 |
|
| 61 |
-
|
| 62 |
-
# apps = [processing.app, target_extraction.app, netzero.app, ghg.app,
|
| 63 |
-
# policyaction.app, conditional.app, sector.app, adapmit.app,indicator.app]
|
| 64 |
-
|
| 65 |
-
# multiplier_val =1/len(apps)
|
| 66 |
-
# if st.button("Analyze Document"):
|
| 67 |
-
# prg = st.progress(0.0)
|
| 68 |
-
# for i,func in enumerate(apps):
|
| 69 |
-
# func()
|
| 70 |
-
# prg.progress((i+1)*multiplier_val)
|
| 71 |
-
|
| 72 |
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
# ('Target', 'Action', 'Policies/Plans'))
|
| 78 |
-
|
| 79 |
-
# if topic == 'Target':
|
| 80 |
-
# target_extraction.target_display()
|
| 81 |
-
# elif topic == 'Action':
|
| 82 |
-
# policyaction.action_display()
|
| 83 |
-
# else:
|
| 84 |
-
# policyaction.policy_display()
|
| 85 |
-
# # st.write(st.session_state.key1)
|
| 86 |
|
| 87 |
|
| 88 |
|
|
|
|
|
|
|
| 1 |
import appStore.doc_processing as processing
|
| 2 |
+
import appStore.identifier as target_identifier
|
| 3 |
from utils.uploadAndExample import add_upload
|
| 4 |
import streamlit as st
|
| 5 |
|
|
|
|
| 58 |
|
| 59 |
st.write("")
|
| 60 |
|
| 61 |
+
if 'key1' in st.session_state:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 62 |
|
| 63 |
+
if st.button("Analyze Document"):
|
| 64 |
+
target_identifier.identify_groups()
|
| 65 |
+
|
| 66 |
+
st.write(st.session_state.key1)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 67 |
|
| 68 |
|
| 69 |
|