Mohammad Haghir commited on
Commit ·
59c44f9
1
Parent(s): 58fa7cf
simple solution
Browse files
app.py
CHANGED
|
@@ -14,7 +14,7 @@ DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
|
|
| 14 |
|
| 15 |
groq_api_key = os.getenv("GROQ_API_KEY")
|
| 16 |
|
| 17 |
-
llm = ChatGroq(api_key=groq_api_key, model="
|
| 18 |
|
| 19 |
|
| 20 |
|
|
@@ -31,8 +31,7 @@ class BasicAgent:
|
|
| 31 |
# print(f"Agent returning fixed answer: {fixed_answer}")
|
| 32 |
prompt = f"""
|
| 33 |
You are a general AI assistant. I will ask you a question.
|
| 34 |
-
|
| 35 |
-
FINAL ANSWER: [YOUR FINAL ANSWER]. YOUR FINAL ANSWER should be a number OR
|
| 36 |
as few words as possible OR a comma separated list of numbers and/or strings.
|
| 37 |
If you are asked for a number, don't use comma to write your number neither use
|
| 38 |
units such as $ or percent sign unless specified otherwise. If you are asked for
|
|
|
|
| 14 |
|
| 15 |
groq_api_key = os.getenv("GROQ_API_KEY")
|
| 16 |
|
| 17 |
+
llm = ChatGroq(api_key=groq_api_key, model="llama-3.3-70b-versatile")
|
| 18 |
|
| 19 |
|
| 20 |
|
|
|
|
| 31 |
# print(f"Agent returning fixed answer: {fixed_answer}")
|
| 32 |
prompt = f"""
|
| 33 |
You are a general AI assistant. I will ask you a question.
|
| 34 |
+
YOUR FINAL ANSWER should be a number OR
|
|
|
|
| 35 |
as few words as possible OR a comma separated list of numbers and/or strings.
|
| 36 |
If you are asked for a number, don't use comma to write your number neither use
|
| 37 |
units such as $ or percent sign unless specified otherwise. If you are asked for
|