MLDeveloper commited on
Commit
40c338c
·
verified ·
1 Parent(s): 12cfc0d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +37 -18
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
- - **Citizen Role:** Report waste collection issues and track garbage pickup.
51
- - **Municipal Workers:** Manage schedules and coordinate garbage segregation.
52
- - **Recycling Companies:** View and respond to requests for plastic waste.
53
- - **Biogas Plants:** Manage bio-waste for energy production.
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 **Smart Waste Management System** aims to:
94
- - 🏡 **Improve waste collection efficiency** for citizens.
95
- - 🚛 **Help municipal workers** manage schedules.
96
- - 🔄 **Assist recycling companies** in waste processing.
97
- - ⚡ **Support biogas plants** in energy production.
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
+ )