Spaces:
Sleeping
Sleeping
SHAMIL SHAHBAZ AWAN commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -103,9 +103,8 @@ st.markdown(
|
|
| 103 |
|
| 104 |
|
| 105 |
# Initialize the Groq client with the API key from Streamlit's secrets
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
client = Groq(api_key=GROQ_API_KEY)
|
| 109 |
# Function to interact with the Groq API
|
| 110 |
def get_groq_response(user_input, model="llama-3.3-70b-versatile"):
|
| 111 |
chat_completion = client.chat.completions.create(
|
|
|
|
| 103 |
|
| 104 |
|
| 105 |
# Initialize the Groq client with the API key from Streamlit's secrets
|
| 106 |
+
# Initialize the Groq client with the API key from Streamlit's secrets
|
| 107 |
+
client = Groq(api_key=st.secrets["GROQ_API_KEY"])
|
|
|
|
| 108 |
# Function to interact with the Groq API
|
| 109 |
def get_groq_response(user_input, model="llama-3.3-70b-versatile"):
|
| 110 |
chat_completion = client.chat.completions.create(
|