Update app.py
Browse files
app.py
CHANGED
|
@@ -2,11 +2,12 @@ import streamlit as st
|
|
| 2 |
from groq import Groq
|
| 3 |
|
| 4 |
# β
Set your Groq API key here (replace with your actual key)
|
| 5 |
-
GROQ_API_KEY = MY_KEY # π Replace this with your real key
|
| 6 |
-
|
| 7 |
# Initialize Groq client
|
| 8 |
client = Groq(api_key=GROQ_API_KEY)
|
| 9 |
|
|
|
|
| 10 |
# Set page configuration
|
| 11 |
st.set_page_config(page_title="Groq Chatbot", page_icon="π€")
|
| 12 |
|
|
|
|
| 2 |
from groq import Groq
|
| 3 |
|
| 4 |
# β
Set your Groq API key here (replace with your actual key)
|
| 5 |
+
#GROQ_API_KEY = MY_KEY # π Replace this with your real key
|
| 6 |
+
GROQ_API_KEY = os.environ.get("MY_KEY")
|
| 7 |
# Initialize Groq client
|
| 8 |
client = Groq(api_key=GROQ_API_KEY)
|
| 9 |
|
| 10 |
+
|
| 11 |
# Set page configuration
|
| 12 |
st.set_page_config(page_title="Groq Chatbot", page_icon="π€")
|
| 13 |
|