Update app.py
Browse files
app.py
CHANGED
@@ -43,8 +43,48 @@ with st.expander("ℹ️ - About this app", expanded=False):
|
|
43 |
#image = Image.open('docStore/img/flow.jpg')
|
44 |
#st.image(image)
|
45 |
#with c3:
|
46 |
-
|
47 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
|
49 |
#st.title("Identify references to vulnerable groups.")
|
50 |
|
|
|
43 |
#image = Image.open('docStore/img/flow.jpg')
|
44 |
#st.image(image)
|
45 |
#with c3:
|
46 |
+
st.write("""
|
47 |
+
What happens in the background?
|
48 |
+
|
49 |
+
- Step 1: Once the document is provided to app, it undergoes *Pre-processing*.\
|
50 |
+
In this step the document is broken into smaller paragraphs \
|
51 |
+
(based on word/sentence count).
|
52 |
+
- Step 2: The paragraphs are fed to **Target Classifier** which detects if
|
53 |
+
the paragraph contains any *Target* related information or not.
|
54 |
+
- Step 3: The paragraphs which are detected containing some target \
|
55 |
+
related information are then fed to multiple classifier to enrich the
|
56 |
+
Information Extraction.
|
57 |
+
|
58 |
+
The Step 2 and 3 are repated then similarly for Action and Policies & Plans.
|
59 |
+
""")
|
60 |
+
|
61 |
+
st.write("")
|
62 |
+
|
63 |
+
|
64 |
+
apps = [processing.app, target_extraction.app, netzero.app, ghg.app,
|
65 |
+
policyaction.app, conditional.app, sector.app, adapmit.app,indicator.app]
|
66 |
+
|
67 |
+
multiplier_val =1/len(apps)
|
68 |
+
if st.button("Analyze Document"):
|
69 |
+
prg = st.progress(0.0)
|
70 |
+
for i,func in enumerate(apps):
|
71 |
+
func()
|
72 |
+
prg.progress((i+1)*multiplier_val)
|
73 |
+
|
74 |
+
|
75 |
+
if 'key1' in st.session_state:
|
76 |
+
with st.sidebar:
|
77 |
+
topic = st.radio(
|
78 |
+
"Which category you want to explore?",
|
79 |
+
('Target', 'Action', 'Policies/Plans'))
|
80 |
+
|
81 |
+
if topic == 'Target':
|
82 |
+
target_extraction.target_display()
|
83 |
+
elif topic == 'Action':
|
84 |
+
policyaction.action_display()
|
85 |
+
else:
|
86 |
+
policyaction.policy_display()
|
87 |
+
# st.write(st.session_state.key1)
|
88 |
|
89 |
#st.title("Identify references to vulnerable groups.")
|
90 |
|