amasood commited on
Commit
4b4c745
Β·
verified Β·
1 Parent(s): 6174a54

Update app.py

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