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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -47,10 +47,14 @@ def create_faiss_index(chunks, vector_dim):
47
  index.add(embeddings)
48
  return index, embeddings
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
 
47
  index.add(embeddings)
48
  return index, embeddings
49
 
50
+
51
+
52
+
53
  # Initialize Groq API client
54
  def get_groq_client():
55
  GROQ_API_KEY= os.environ.get('GroqApi')
56
+ client = Groq(api_key=GROQ_API_KEY)
57
+ return client
58
 
59
 
60
  # Query Groq model