Create app.py
Browse files
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)
|