Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -24,8 +24,8 @@ DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
|
|
| 24 |
model = OpenAIServerModel(
|
| 25 |
api_key="fw_3ZSrkw3Qv5eeA1yx65x1eD5H",
|
| 26 |
api_base="https://api.fireworks.ai/inference/v1",
|
| 27 |
-
model_id="accounts/fireworks/models/llama-
|
| 28 |
-
temperature = 0.
|
| 29 |
max_tokens = 1000
|
| 30 |
)
|
| 31 |
# #top_p = 1
|
|
@@ -52,17 +52,20 @@ class BasicAgent:
|
|
| 52 |
|
| 53 |
# Get the actual answer from the agent
|
| 54 |
answer = agent.run(f"""Provide only what is requested in answer SHORTLY.
|
| 55 |
-
If there is requested to provide ONE word or the sequence, provide it.
|
| 56 |
-
This is for the benchmark, so the answer should be REALLY ACCURATE.
|
| 57 |
Here is the question:
|
| 58 |
{question}
|
| 59 |
""") # Assuming run() returns the answer
|
| 60 |
-
return str(answer) # Ensure it's a string
|
| 61 |
-
|
| 62 |
print("="*30)
|
| 63 |
print(answer)
|
| 64 |
print("="*30)
|
| 65 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 66 |
#fixed_answer = agent
|
| 67 |
|
| 68 |
# url = "https://api.fireworks.ai/inference/v1/chat/completions"
|
|
|
|
| 24 |
model = OpenAIServerModel(
|
| 25 |
api_key="fw_3ZSrkw3Qv5eeA1yx65x1eD5H",
|
| 26 |
api_base="https://api.fireworks.ai/inference/v1",
|
| 27 |
+
model_id="accounts/fireworks/models/llama-v3p3-70b-instruct",
|
| 28 |
+
temperature = 0.1,
|
| 29 |
max_tokens = 1000
|
| 30 |
)
|
| 31 |
# #top_p = 1
|
|
|
|
| 52 |
|
| 53 |
# Get the actual answer from the agent
|
| 54 |
answer = agent.run(f"""Provide only what is requested in answer SHORTLY.
|
| 55 |
+
If there is requested to provide ONE word or the sequence or the NUMBER, provide it.
|
| 56 |
+
This is for the benchmark valuation, so the answer should be REALLY ACCURATE.
|
| 57 |
Here is the question:
|
| 58 |
{question}
|
| 59 |
""") # Assuming run() returns the answer
|
|
|
|
|
|
|
| 60 |
print("="*30)
|
| 61 |
print(answer)
|
| 62 |
print("="*30)
|
| 63 |
|
| 64 |
+
|
| 65 |
+
return str(answer) # Ensure it's a string
|
| 66 |
+
|
| 67 |
+
|
| 68 |
+
|
| 69 |
#fixed_answer = agent
|
| 70 |
|
| 71 |
# url = "https://api.fireworks.ai/inference/v1/chat/completions"
|