Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
|
|
|
| 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
|