Update app.py
Browse files
app.py
CHANGED
|
@@ -40,6 +40,33 @@ if "chat_session" not in st.session_state:
|
|
| 40 |
# Display the app's title
|
| 41 |
st.title("♻️ Smart Waste Management System")
|
| 42 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
# Introduction and instructions
|
| 44 |
st.markdown(
|
| 45 |
"""
|
|
@@ -47,21 +74,13 @@ st.markdown(
|
|
| 47 |
recycling companies, and biogas plants** collaborate efficiently for **better waste management**.
|
| 48 |
|
| 49 |
### **🌟 Key Features**
|
| 50 |
-
- **
|
| 51 |
-
- **
|
| 52 |
-
- **
|
| 53 |
-
- **
|
| 54 |
"""
|
| 55 |
)
|
| 56 |
|
| 57 |
-
# Back Button to Redirect to Dashboard
|
| 58 |
-
if st.button("🔙 Back to Dashboard"):
|
| 59 |
-
st.markdown("""
|
| 60 |
-
<script>
|
| 61 |
-
window.location.href = 'https://binsight.onrender.com/dashboard.html';
|
| 62 |
-
</script>
|
| 63 |
-
", unsafe_allow_html=True)
|
| 64 |
-
|
| 65 |
# User role selection
|
| 66 |
user_role = st.selectbox("🔹 Select Your Role:", ["Citizen", "Municipal Worker", "Recycling Company", "Biogas Plant"])
|
| 67 |
|
|
@@ -90,12 +109,12 @@ if user_prompt:
|
|
| 90 |
st.sidebar.title("📌 About")
|
| 91 |
st.sidebar.markdown(
|
| 92 |
"""
|
| 93 |
-
The
|
| 94 |
-
- 🏡
|
| 95 |
-
- 🚛
|
| 96 |
-
- 🔄
|
| 97 |
-
- ⚡
|
| 98 |
|
| 99 |
💡 **Need Help?** Use the chat to ask questions!
|
| 100 |
"""
|
| 101 |
-
)
|
|
|
|
| 40 |
# Display the app's title
|
| 41 |
st.title("♻️ Smart Waste Management System")
|
| 42 |
|
| 43 |
+
# Back Button to Redirect to Dashboard
|
| 44 |
+
st.markdown(
|
| 45 |
+
"""
|
| 46 |
+
<style>
|
| 47 |
+
.back-button {
|
| 48 |
+
display: flex;
|
| 49 |
+
justify-content: center;
|
| 50 |
+
padding: 10px;
|
| 51 |
+
}
|
| 52 |
+
.btn {
|
| 53 |
+
background-color: #4CAF50;
|
| 54 |
+
color: white;
|
| 55 |
+
padding: 10px 20px;
|
| 56 |
+
text-align: center;
|
| 57 |
+
text-decoration: none;
|
| 58 |
+
font-size: 16px;
|
| 59 |
+
border-radius: 5px;
|
| 60 |
+
display: inline-block;
|
| 61 |
+
}
|
| 62 |
+
</style>
|
| 63 |
+
<div class="back-button">
|
| 64 |
+
<a href="https://binsight.onrender.com/dashboard.html" class="btn">🔙 Back to Dashboard</a>
|
| 65 |
+
</div>
|
| 66 |
+
""",
|
| 67 |
+
unsafe_allow_html=True,
|
| 68 |
+
)
|
| 69 |
+
|
| 70 |
# Introduction and instructions
|
| 71 |
st.markdown(
|
| 72 |
"""
|
|
|
|
| 74 |
recycling companies, and biogas plants** collaborate efficiently for **better waste management**.
|
| 75 |
|
| 76 |
### **🌟 Key Features**
|
| 77 |
+
- 🏡 **Improve waste collection efficiency** for citizens.
|
| 78 |
+
- 🚛 **Help municipal workers** manage schedules.
|
| 79 |
+
- 🔄 **Assist recycling companies** in waste processing.
|
| 80 |
+
- ⚡ **Support biogas plants** in energy production.
|
| 81 |
"""
|
| 82 |
)
|
| 83 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 84 |
# User role selection
|
| 85 |
user_role = st.selectbox("🔹 Select Your Role:", ["Citizen", "Municipal Worker", "Recycling Company", "Biogas Plant"])
|
| 86 |
|
|
|
|
| 109 |
st.sidebar.title("📌 About")
|
| 110 |
st.sidebar.markdown(
|
| 111 |
"""
|
| 112 |
+
**The Smart Waste Management System aims to:**
|
| 113 |
+
- 🏡 Improve waste collection efficiency for citizens.
|
| 114 |
+
- 🚛 Help municipal workers manage schedules.
|
| 115 |
+
- 🔄 Assist recycling companies in waste processing.
|
| 116 |
+
- ⚡ Support biogas plants in energy production.
|
| 117 |
|
| 118 |
💡 **Need Help?** Use the chat to ask questions!
|
| 119 |
"""
|
| 120 |
+
)
|