Mujtaba29 commited on
Commit
f1f08fd
Β·
verified Β·
1 Parent(s): 49b3888

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
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"] = "your_api_key"
7
 
8
  # Initialize Groq client
9
- client = Groq(api_key=os.environ.get("GROQ_API_KEY"))
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 color and style
23
  st.markdown(
24
  """
25
  <style>
26
  body {
27
- background-color: #f0f2f6;
28
  }
29
  .main {
30
  background-color: #ffffff;
@@ -33,7 +33,7 @@ st.markdown(
33
  color: #333333;
34
  }
35
  .sidebar .sidebar-content {
36
- background-color: #eaf4fc;
37
  border-radius: 10px;
38
  }
39
  </style>
@@ -41,7 +41,7 @@ st.markdown(
41
  unsafe_allow_html=True,
42
  )
43
 
44
- # Sidebar with navigation
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",