analysis part to app
Browse files
app.py
CHANGED
|
@@ -52,4 +52,20 @@ with st.expander("ℹ️ - About this app", expanded=False):
|
|
| 52 |
the paragraph contains any or multiple references to vulnerable groups.
|
| 53 |
""")
|
| 54 |
|
| 55 |
-
st.write("")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 52 |
the paragraph contains any or multiple references to vulnerable groups.
|
| 53 |
""")
|
| 54 |
|
| 55 |
+
st.write("")
|
| 56 |
+
|
| 57 |
+
# Define the apps used
|
| 58 |
+
apps = [processing.app, vulnerability_analysis.app, target_analysis.app]
|
| 59 |
+
|
| 60 |
+
multiplier_val =1/len(apps)
|
| 61 |
+
if st.button("Analyze Document"):
|
| 62 |
+
prg = st.progress(0.0)
|
| 63 |
+
for i,func in enumerate(apps):
|
| 64 |
+
func()
|
| 65 |
+
prg.progress((i+1)*multiplier_val)
|
| 66 |
+
|
| 67 |
+
# If there is data stored
|
| 68 |
+
if 'key0' in st.session_state:
|
| 69 |
+
|
| 70 |
+
vulnerability_analysis.vulnerability_display()
|
| 71 |
+
target_analysis.target_display(model_sel_name=model_sel_name)
|