Spaces:
Build error
Build error
fix: update secrets accessing
#1
by ghostleek - opened
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 =
|
| 22 |
|
| 23 |
# Define the Google Analytics script
|
| 24 |
GA_SCRIPT = f"""
|
|
@@ -42,7 +42,7 @@ def inject_ga():
|
|
| 42 |
inject_ga()
|
| 43 |
|
| 44 |
# Initialize the Groq client
|
| 45 |
-
GROQ_API_KEY =
|
| 46 |
os.environ["GROQ_API_KEY"] = GROQ_API_KEY
|
| 47 |
client = Groq()
|
| 48 |
|
|
|
|
| 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 |
os.environ["GROQ_API_KEY"] = GROQ_API_KEY
|
| 47 |
client = Groq()
|
| 48 |
|