File size: 962 Bytes
ef21e68
 
 
 
3708b65
ef21e68
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
import streamlit as st
from streamlit_option_menu import option_menu

# Inclure le logo
st.image('logo.png', width=700)  # Adjust the width as needed

# Description de l'application
st.markdown("""
    <div style="color: #000000; font-size: 20px; font-weight: bold; text-align: center; margin-bottom: 20px;">
This application helps farmers detect plant leaf diseases and generate reports with recommended solutions. Additionally, it offers a weather dashboard to help you plan your agricultural activities.
    </div>
""", unsafe_allow_html=True)




selected = option_menu(
        menu_title=None,
        options=["home","Today's weather", "Leaf disease detection"],
        icons=['weather', 'image'],
        menu_icon="cast", default_index=0, orientation="horizontal",
        
    )
if selected == "Today's weather":
    st.switch_page('pages/Weather.py')
elif selected == "Leaf disease detection":
     st.switch_page('pages/LeafDiseaseDetection.py')