Spaces:
Sleeping
Sleeping
tobyvertommen Claude Sonnet 4.6 commited on
Commit ·
2bd5204
1
Parent(s): 5762615
Fix: update Groq model to llama-3.3-70b-versatile
Browse filesllama-3.1-70b-versatile decommissioned, replaced by 3.3-70b-versatile.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
app.py
CHANGED
|
@@ -42,7 +42,7 @@ def fetch_task_file(task_id: str) -> str:
|
|
| 42 |
|
| 43 |
class BasicAgent:
|
| 44 |
def __init__(self):
|
| 45 |
-
llm = ChatGroq(model="llama-3.
|
| 46 |
tools = [
|
| 47 |
DuckDuckGoSearchRun(),
|
| 48 |
WikipediaQueryRun(api_wrapper=WikipediaAPIWrapper(top_k_results=3)),
|
|
@@ -50,7 +50,7 @@ class BasicAgent:
|
|
| 50 |
fetch_task_file,
|
| 51 |
]
|
| 52 |
self.agent = create_react_agent(llm, tools)
|
| 53 |
-
print("BasicAgent initialized with LangGraph + Groq (llama-3.
|
| 54 |
|
| 55 |
def __call__(self, question: str, task_id: str = "") -> str:
|
| 56 |
full_question = f"[Task ID: {task_id}]\n\n{question}" if task_id else question
|
|
@@ -192,7 +192,7 @@ with gr.Blocks() as demo:
|
|
| 192 |
1. Log in to your Hugging Face account using the button below.
|
| 193 |
2. Click 'Run Evaluation & Submit All Answers' to fetch questions, run the agent, and submit.
|
| 194 |
|
| 195 |
-
**Agent:** LangGraph ReAct agent with Groq (llama-3.
|
| 196 |
**Tools:** DuckDuckGo search, Wikipedia, Python REPL, File fetcher
|
| 197 |
|
| 198 |
---
|
|
|
|
| 42 |
|
| 43 |
class BasicAgent:
|
| 44 |
def __init__(self):
|
| 45 |
+
llm = ChatGroq(model="llama-3.3-70b-versatile", temperature=0)
|
| 46 |
tools = [
|
| 47 |
DuckDuckGoSearchRun(),
|
| 48 |
WikipediaQueryRun(api_wrapper=WikipediaAPIWrapper(top_k_results=3)),
|
|
|
|
| 50 |
fetch_task_file,
|
| 51 |
]
|
| 52 |
self.agent = create_react_agent(llm, tools)
|
| 53 |
+
print("BasicAgent initialized with LangGraph + Groq (llama-3.3-70b-versatile).")
|
| 54 |
|
| 55 |
def __call__(self, question: str, task_id: str = "") -> str:
|
| 56 |
full_question = f"[Task ID: {task_id}]\n\n{question}" if task_id else question
|
|
|
|
| 192 |
1. Log in to your Hugging Face account using the button below.
|
| 193 |
2. Click 'Run Evaluation & Submit All Answers' to fetch questions, run the agent, and submit.
|
| 194 |
|
| 195 |
+
**Agent:** LangGraph ReAct agent with Groq (llama-3.3-70b-versatile)
|
| 196 |
**Tools:** DuckDuckGo search, Wikipedia, Python REPL, File fetcher
|
| 197 |
|
| 198 |
---
|