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