Engineer786 commited on
Commit
688ec54
·
verified ·
1 Parent(s): fc136bf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -49,7 +49,9 @@ def create_faiss_index(chunks, vector_dim):
49
 
50
  # Initialize Groq API client
51
  def get_groq_client():
52
- return Groq(api_key=os.environ.get("GROQ_API_KEY"))
 
 
53
 
54
  # Query Groq model
55
  def query_model(client, question):
 
49
 
50
  # Initialize Groq API client
51
  def get_groq_client():
52
+ GROQ_API_KEY= os.environ.get('GroqApi')
53
+ return client = Groq(api_key=GROQ_API_KEY)
54
+
55
 
56
  # Query Groq model
57
  def query_model(client, question):