Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,7 +7,7 @@ import pandas as pd
|
|
| 7 |
from smolagents import CodeAgent, InferenceClientModel, DuckDuckGoSearchTool, HfApiModel, load_tool, tool
|
| 8 |
from huggingface_hub import InferenceClient
|
| 9 |
import json
|
| 10 |
-
|
| 11 |
|
| 12 |
api_url = "https://agents-course-unit4-scoring.hf.space"
|
| 13 |
questions_url = f"{api_url}/questions"
|
|
@@ -73,7 +73,8 @@ agent_codeagent = CodeAgent(
|
|
| 73 |
def run_and_submit_one():
|
| 74 |
# 1. Instantiate Agent ( modify this part to create your agent)
|
| 75 |
try:
|
| 76 |
-
agent =
|
|
|
|
| 77 |
|
| 78 |
except Exception as e:
|
| 79 |
print(f"Error instantiating agent: {e}")
|
|
|
|
| 7 |
from smolagents import CodeAgent, InferenceClientModel, DuckDuckGoSearchTool, HfApiModel, load_tool, tool
|
| 8 |
from huggingface_hub import InferenceClient
|
| 9 |
import json
|
| 10 |
+
from tools.final_answer import FinalAnswerTool
|
| 11 |
|
| 12 |
api_url = "https://agents-course-unit4-scoring.hf.space"
|
| 13 |
questions_url = f"{api_url}/questions"
|
|
|
|
| 73 |
def run_and_submit_one():
|
| 74 |
# 1. Instantiate Agent ( modify this part to create your agent)
|
| 75 |
try:
|
| 76 |
+
agent = BasicAgent()
|
| 77 |
+
#agent = agent_codeagent
|
| 78 |
|
| 79 |
except Exception as e:
|
| 80 |
print(f"Error instantiating agent: {e}")
|