Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -55,7 +55,8 @@ if uploaded_file is not None:
|
|
55 |
docs = vector_store.similarity_search(query, k=3)
|
56 |
context = "\n".join([doc.page_content for doc in docs])
|
57 |
|
58 |
-
|
|
|
59 |
|
60 |
response = client.chat.completions.create(
|
61 |
messages=[{"role": "user", "content": context + "\n\n" + query}],
|
|
|
55 |
docs = vector_store.similarity_search(query, k=3)
|
56 |
context = "\n".join([doc.page_content for doc in docs])
|
57 |
|
58 |
+
|
59 |
+
client = Groq(api_key=os.getenviron["GROQ_API_KEY"])
|
60 |
|
61 |
response = client.chat.completions.create(
|
62 |
messages=[{"role": "user", "content": context + "\n\n" + query}],
|