fix: brackets syntax for secrets accessing

#2
by ghostleek - opened
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -18,7 +18,7 @@ st.set_page_config(
18
  # Function to inject Google Analytics using st.components.v1.html
19
  def inject_ga():
20
  try:
21
- GA_MEASUREMENT_ID = os.getenv["measurement_id"]
22
 
23
  # Define the Google Analytics script
24
  GA_SCRIPT = f"""
@@ -42,8 +42,7 @@ def inject_ga():
42
  inject_ga()
43
 
44
  # Initialize the Groq client
45
- GROQ_API_KEY = os.getenv["GROQ_API_KEY"]
46
- os.environ["GROQ_API_KEY"] = GROQ_API_KEY
47
  client = Groq()
48
 
49
  if "session_uuid" not in st.session_state:
 
18
  # Function to inject Google Analytics using st.components.v1.html
19
  def inject_ga():
20
  try:
21
+ GA_MEASUREMENT_ID = os.getenv("measurement_id")
22
 
23
  # Define the Google Analytics script
24
  GA_SCRIPT = f"""
 
42
  inject_ga()
43
 
44
  # Initialize the Groq client
45
+ GROQ_API_KEY = os.getenv("GROQ_API_KEY")
 
46
  client = Groq()
47
 
48
  if "session_uuid" not in st.session_state: