Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -40,7 +40,7 @@ def create_faiss_index(chunks, vector_dim):
|
|
40 |
|
41 |
# Initialize Groq API client
|
42 |
def get_groq_client():
|
43 |
-
return Groq(api_key="
|
44 |
|
45 |
# Query Groq model
|
46 |
def query_model(client, question):
|
|
|
40 |
|
41 |
# Initialize Groq API client
|
42 |
def get_groq_client():
|
43 |
+
return Groq(api_key=os.environ.get("GROQ_API_KEY"))
|
44 |
|
45 |
# Query Groq model
|
46 |
def query_model(client, question):
|