Create streamlit_app.py
Browse files- streamlit_app.py +42 -0
streamlit_app.py
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import streamlit as st
|
| 2 |
+
|
| 3 |
+
st.set_page_config(
|
| 4 |
+
page_title="Rice Disease Classifier ๐พ",
|
| 5 |
+
page_icon="๐",
|
| 6 |
+
)
|
| 7 |
+
|
| 8 |
+
st.title("Rice Disease Classification App ๐")
|
| 9 |
+
st.write("*Project by Omdena Laguna, Philippines Chapter*")
|
| 10 |
+
st.write("**Chapter Lead:** [Signour Melo](https://www.linkedin.com/in/signour-sigmeund-melo-63aa791aa/)")
|
| 11 |
+
st.image("pages/RiceDiseaseClassifier.jpeg", caption='', width=450)
|
| 12 |
+
|
| 13 |
+
st.header("How does this app work? โ")
|
| 14 |
+
st.write("""
|
| 15 |
+
Once you upload the image of your rice plant using any one of our models,
|
| 16 |
+
they further check the diseased areas and classify the type of disease.
|
| 17 |
+
They also provide information & solutions based on the resulting disease.
|
| 18 |
+
""")
|
| 19 |
+
|
| 20 |
+
st.subheader("How to use this app? ๐ค")
|
| 21 |
+
st.markdown("""
|
| 22 |
+
1. Select any one model from the sidebar
|
| 23 |
+
2. Upload the image of your rice plant ๐พ & wait for a few seconds
|
| 24 |
+
3. The model shows the type of disease the plant suffers from.
|
| 25 |
+
|
| 26 |
+
- Choose the second model to know more about the disease & suggested solutions that help prevent them.
|
| 27 |
+
""")
|
| 28 |
+
|
| 29 |
+
st.sidebar.info("Please select a page above ๐")
|
| 30 |
+
|
| 31 |
+
st.sidebar.write("""
|
| 32 |
+
### ๐ Background
|
| 33 |
+
Rice is the heart of Filipino cuisine, an ingredient so fundamental to the countryโs food culture that it is eaten at every meal, from breakfast to dinner.
|
| 34 |
+
Itโs served at every meal with almost every dish as well as plays an important role in Filipino celebrations and rituals.
|
| 35 |
+
|
| 36 |
+
### ๐ The Problem
|
| 37 |
+
Rice diseases are a major concern where a variety of fungal, bacterial, & viral diseases can infect rice plants, causing reduced yield,
|
| 38 |
+
lower quality, and even total crop loss.These diseases can be devastating to farmers, especially those with limited resources.
|
| 39 |
+
*Read more about it [here](https://www.omdena.com/projects/creating-a-rice-disease-classifier-using-open-source-data-and-computer-vision)*
|
| 40 |
+
""")
|
| 41 |
+
|
| 42 |
+
st.sidebar.image("pages/laguna_chapter.png", width=250)
|