Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import streamlit as st
|
|
3 |
import authentication
|
4 |
from authentication import greeting
|
5 |
import streamlit as st
|
6 |
-
from pag import add_field, edit, monitor,contact_form
|
7 |
st. set_page_config(layout="wide")
|
8 |
import os
|
9 |
|
@@ -69,7 +69,7 @@ def main():
|
|
69 |
row1_col1, row1_col2 = st.columns([2, 1])
|
70 |
|
71 |
options = st.sidebar.radio("Choose an option:",
|
72 |
-
("Add and Manage Fields", "Monitor Fields"))
|
73 |
if options == "Add and Manage Fields":
|
74 |
with row1_col1:
|
75 |
st.title("Welcome to :orange[Field Monitoring App]")
|
@@ -82,6 +82,9 @@ def main():
|
|
82 |
|
83 |
elif options == "Monitor Fields":
|
84 |
monitor.monitor_fields()
|
|
|
|
|
|
|
85 |
else:
|
86 |
authenticate_user()
|
87 |
if __name__ == "__main__":
|
|
|
3 |
import authentication
|
4 |
from authentication import greeting
|
5 |
import streamlit as st
|
6 |
+
from pag import add_field, edit, monitor,contact_form, Model_Report
|
7 |
st. set_page_config(layout="wide")
|
8 |
import os
|
9 |
|
|
|
69 |
row1_col1, row1_col2 = st.columns([2, 1])
|
70 |
|
71 |
options = st.sidebar.radio("Choose an option:",
|
72 |
+
("Add and Manage Fields", "Monitor Fields", "Model_Report"))
|
73 |
if options == "Add and Manage Fields":
|
74 |
with row1_col1:
|
75 |
st.title("Welcome to :orange[Field Monitoring App]")
|
|
|
82 |
|
83 |
elif options == "Monitor Fields":
|
84 |
monitor.monitor_fields()
|
85 |
+
|
86 |
+
elif options == "Model_Report":
|
87 |
+
Model_Report.display_pdf()
|
88 |
else:
|
89 |
authenticate_user()
|
90 |
if __name__ == "__main__":
|