SHAMIL SHAHBAZ AWAN commited on
Commit
63987b1
·
verified ·
1 Parent(s): ae275f9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
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
- GROQ_API_KEY = "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"
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(