Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +21 -0
src/streamlit_app.py
CHANGED
|
@@ -5,6 +5,27 @@ from utils.reducer import suggest_reduction
|
|
| 5 |
|
| 6 |
st.set_page_config(page_title="GreenPrint AI 🌱", layout="centered")
|
| 7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
st.markdown("""
|
| 9 |
<h1 style='text-align: center; white-space: nowrap; overflow-x: auto; font-size: 2.2rem;'>
|
| 10 |
🌿 GreenPrint AI: Carbon Footprint Detector
|
|
|
|
| 5 |
|
| 6 |
st.set_page_config(page_title="GreenPrint AI 🌱", layout="centered")
|
| 7 |
|
| 8 |
+
# Custom CSS for green button
|
| 9 |
+
st.markdown("""
|
| 10 |
+
<style>
|
| 11 |
+
div.stButton > button:first-child {
|
| 12 |
+
background-color: #4CAF50;
|
| 13 |
+
color: white;
|
| 14 |
+
border: none;
|
| 15 |
+
padding: 8px 20px;
|
| 16 |
+
border-radius: 8px;
|
| 17 |
+
font-size: 16px;
|
| 18 |
+
transition: 0.3s;
|
| 19 |
+
}
|
| 20 |
+
div.stButton > button:first-child:hover {
|
| 21 |
+
background-color: #45a049;
|
| 22 |
+
color: white;
|
| 23 |
+
border: none;
|
| 24 |
+
}
|
| 25 |
+
</style>
|
| 26 |
+
""", unsafe_allow_html=True)
|
| 27 |
+
|
| 28 |
+
|
| 29 |
st.markdown("""
|
| 30 |
<h1 style='text-align: center; white-space: nowrap; overflow-x: auto; font-size: 2.2rem;'>
|
| 31 |
🌿 GreenPrint AI: Carbon Footprint Detector
|