Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,7 +15,7 @@ DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
|
|
| 15 |
# --- Basic Agent Definition ---
|
| 16 |
class BasicAgent:
|
| 17 |
def __init__(self):
|
| 18 |
-
llm=ChatNVIDIA(model="meta/llama-3.3-70b-instruct",nvidia_api_key=os.getenv("NVIDIA_API_KEY"))
|
| 19 |
self.instructions = """You are a helpful assistant. For every question, reply with only the answer—no explanation, "
|
| 20 |
"no units, and no extra words. If the answer is a number, just return the number. "
|
| 21 |
"If it is a word or phrase, return only that. If it is a list, return a comma-separated list with no extra words. "
|
|
|
|
| 15 |
# --- Basic Agent Definition ---
|
| 16 |
class BasicAgent:
|
| 17 |
def __init__(self):
|
| 18 |
+
self.llm=ChatNVIDIA(model="meta/llama-3.3-70b-instruct",nvidia_api_key=os.getenv("NVIDIA_API_KEY"))
|
| 19 |
self.instructions = """You are a helpful assistant. For every question, reply with only the answer—no explanation, "
|
| 20 |
"no units, and no extra words. If the answer is a number, just return the number. "
|
| 21 |
"If it is a word or phrase, return only that. If it is a list, return a comma-separated list with no extra words. "
|