Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -3,10 +3,10 @@ import streamlit as st
|
|
3 |
from groq import Groq
|
4 |
|
5 |
# Set the Groq API key
|
6 |
-
os.environ["GROQ_API_KEY"] = "
|
7 |
|
8 |
# Initialize Groq client
|
9 |
-
client = Groq(api_key=os.environ.get("
|
10 |
|
11 |
# Carbon footprint reduction data (kg CO2 per kg recycled)
|
12 |
carbon_reduction_data = {
|
@@ -19,12 +19,12 @@ carbon_reduction_data = {
|
|
19 |
"Tires": 8.0,
|
20 |
}
|
21 |
|
22 |
-
# Custom CSS for
|
23 |
st.markdown(
|
24 |
"""
|
25 |
<style>
|
26 |
body {
|
27 |
-
background-color: #
|
28 |
}
|
29 |
.main {
|
30 |
background-color: #ffffff;
|
@@ -33,7 +33,7 @@ st.markdown(
|
|
33 |
color: #333333;
|
34 |
}
|
35 |
.sidebar .sidebar-content {
|
36 |
-
background-color: #
|
37 |
border-radius: 10px;
|
38 |
}
|
39 |
</style>
|
@@ -41,7 +41,7 @@ st.markdown(
|
|
41 |
unsafe_allow_html=True,
|
42 |
)
|
43 |
|
44 |
-
# Sidebar
|
45 |
st.sidebar.title("π RecycleSmart-PK")
|
46 |
st.sidebar.image(
|
47 |
"https://via.placeholder.com/300x200?text=RecycleSmart+Logo",
|
|
|
3 |
from groq import Groq
|
4 |
|
5 |
# Set the Groq API key
|
6 |
+
os.environ["GROQ_API_KEY"] = "key"
|
7 |
|
8 |
# Initialize Groq client
|
9 |
+
client = Groq(api_key=os.environ.get("key"))
|
10 |
|
11 |
# Carbon footprint reduction data (kg CO2 per kg recycled)
|
12 |
carbon_reduction_data = {
|
|
|
19 |
"Tires": 8.0,
|
20 |
}
|
21 |
|
22 |
+
# Custom CSS for colors and layout
|
23 |
st.markdown(
|
24 |
"""
|
25 |
<style>
|
26 |
body {
|
27 |
+
background-color: #f5f5f5;
|
28 |
}
|
29 |
.main {
|
30 |
background-color: #ffffff;
|
|
|
33 |
color: #333333;
|
34 |
}
|
35 |
.sidebar .sidebar-content {
|
36 |
+
background-color: #dceefb;
|
37 |
border-radius: 10px;
|
38 |
}
|
39 |
</style>
|
|
|
41 |
unsafe_allow_html=True,
|
42 |
)
|
43 |
|
44 |
+
# Sidebar for navigation
|
45 |
st.sidebar.title("π RecycleSmart-PK")
|
46 |
st.sidebar.image(
|
47 |
"https://via.placeholder.com/300x200?text=RecycleSmart+Logo",
|