Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,3 @@
|
|
1 |
-
# app.py
|
2 |
import os
|
3 |
import streamlit as st
|
4 |
from groq import Groq
|
@@ -30,7 +29,7 @@ inject_custom_css()
|
|
30 |
|
31 |
# Initialize Groq Client
|
32 |
def get_groq_client():
|
33 |
-
api_key = GROQ_API_KEY
|
34 |
if not api_key:
|
35 |
st.error("GROQ_API_KEY not found! Please set it in environment variables or secrets.")
|
36 |
return None
|
|
|
|
|
1 |
import os
|
2 |
import streamlit as st
|
3 |
from groq import Groq
|
|
|
29 |
|
30 |
# Initialize Groq Client
|
31 |
def get_groq_client():
|
32 |
+
api_key = os.getenv("GROQ_API_KEY")
|
33 |
if not api_key:
|
34 |
st.error("GROQ_API_KEY not found! Please set it in environment variables or secrets.")
|
35 |
return None
|