Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -53,7 +53,7 @@ def generate_answer_with_groq(question, context):
|
|
53 |
prompt = f"Based on the following context, answer the question: '{question}'\n\nContext:\n{context}"
|
54 |
groq_client = Groq(api_key=os.environ["GROQ_API_KEY"])
|
55 |
response = groq_client.chat.completions.create(
|
56 |
-
model="
|
57 |
messages=[
|
58 |
{"role": "system", "content": "You are an AI Assistant for Small Businesses."},
|
59 |
{"role": "user", "content": prompt},
|
|
|
53 |
prompt = f"Based on the following context, answer the question: '{question}'\n\nContext:\n{context}"
|
54 |
groq_client = Groq(api_key=os.environ["GROQ_API_KEY"])
|
55 |
response = groq_client.chat.completions.create(
|
56 |
+
model="llama3-8b-8192", # Updated model name
|
57 |
messages=[
|
58 |
{"role": "system", "content": "You are an AI Assistant for Small Businesses."},
|
59 |
{"role": "user", "content": prompt},
|