-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathapp.py
33 lines (28 loc) · 1.39 KB
/
app.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import streamlit as st
from app_pages.multipage import MultiPage
# load pages scripts
from app_pages.page_summary import page_summary_body
from app_pages.page_plant_image_visualizer import page_plant_image_visualizer_body
from app_pages.page_plant_disease_detector import page_plant_disease_detector_body
from app_pages.page_project_hypothesis import page_project_hypothesis_body
from app_pages.page_machine_learning_performance import page_machine_learning_performance_metrics
app = MultiPage(app_name="Plant Disease Detector") # Create an instance of the app
# Add your app pages here using .add_page()
app.add_page("Quick Project Summary", page_summary_body)
app.add_page("Plant Image Visualiser", page_plant_image_visualizer_body)
app.add_page("Plant Disease Detection", page_plant_disease_detector_body)
app.add_page("Project Hypothesis", page_project_hypothesis_body)
app.add_page("Machine Learning Performance", page_machine_learning_performance_metrics)
page_bg_img = '''
<style>
[data-testid="stReportViewContainer"]{
background-image: url("https://res.cloudinary.com/dlthn5m1i/image/upload/v1708424801/background_tmh3qe.webp");
background-size: cover;
}
[data-testid="stSidebar"] > div:first-child {
background-image: url("https://res.cloudinary.com/dlthn5m1i/image/upload/v1708609849/flower-4905417_1280_errckh.jpg");
}
</style>
'''
st.markdown(page_bg_img, unsafe_allow_html=True)
app.run() # Run the app