Spaces:
Running
Running
Upload agent
Browse files- agent.json +1 -1
- app.py +3 -3
agent.json
CHANGED
|
@@ -2,8 +2,8 @@
|
|
| 2 |
"class": "CodeAgent",
|
| 3 |
"tools": [
|
| 4 |
"get_system_hardware_specs",
|
| 5 |
-
"generate_recommendation_report",
|
| 6 |
"fetch_huggingface_models_tool",
|
|
|
|
| 7 |
"web_search",
|
| 8 |
"final_answer"
|
| 9 |
],
|
|
|
|
| 2 |
"class": "CodeAgent",
|
| 3 |
"tools": [
|
| 4 |
"get_system_hardware_specs",
|
|
|
|
| 5 |
"fetch_huggingface_models_tool",
|
| 6 |
+
"generate_recommendation_report",
|
| 7 |
"web_search",
|
| 8 |
"final_answer"
|
| 9 |
],
|
app.py
CHANGED
|
@@ -6,8 +6,8 @@ from smolagents import GradioUI, CodeAgent, OpenAIModel
|
|
| 6 |
CURRENT_DIR = os.path.dirname(os.path.abspath(__file__))
|
| 7 |
|
| 8 |
from tools.get_system_hardware_specs import SimpleTool as GetSystemHardwareSpecs
|
| 9 |
-
from tools.generate_recommendation_report import SimpleTool as GenerateRecommendationReport
|
| 10 |
from tools.fetch_huggingface_models_tool import SimpleTool as FetchHuggingfaceModelsTool
|
|
|
|
| 11 |
from tools.web_search import DuckDuckGoSearchTool as WebSearch
|
| 12 |
from tools.final_answer import FinalAnswerTool as FinalAnswer
|
| 13 |
|
|
@@ -18,8 +18,8 @@ model_id='qwen2.5-coder:7b',
|
|
| 18 |
)
|
| 19 |
|
| 20 |
get_system_hardware_specs = GetSystemHardwareSpecs()
|
| 21 |
-
generate_recommendation_report = GenerateRecommendationReport()
|
| 22 |
fetch_huggingface_models_tool = FetchHuggingfaceModelsTool()
|
|
|
|
| 23 |
web_search = WebSearch()
|
| 24 |
final_answer = FinalAnswer()
|
| 25 |
|
|
@@ -29,7 +29,7 @@ with open(os.path.join(CURRENT_DIR, "prompts.yaml"), 'r') as stream:
|
|
| 29 |
|
| 30 |
agent = CodeAgent(
|
| 31 |
model=model,
|
| 32 |
-
tools=[get_system_hardware_specs,
|
| 33 |
managed_agents=[],
|
| 34 |
max_steps=20,
|
| 35 |
verbosity_level=1,
|
|
|
|
| 6 |
CURRENT_DIR = os.path.dirname(os.path.abspath(__file__))
|
| 7 |
|
| 8 |
from tools.get_system_hardware_specs import SimpleTool as GetSystemHardwareSpecs
|
|
|
|
| 9 |
from tools.fetch_huggingface_models_tool import SimpleTool as FetchHuggingfaceModelsTool
|
| 10 |
+
from tools.generate_recommendation_report import SimpleTool as GenerateRecommendationReport
|
| 11 |
from tools.web_search import DuckDuckGoSearchTool as WebSearch
|
| 12 |
from tools.final_answer import FinalAnswerTool as FinalAnswer
|
| 13 |
|
|
|
|
| 18 |
)
|
| 19 |
|
| 20 |
get_system_hardware_specs = GetSystemHardwareSpecs()
|
|
|
|
| 21 |
fetch_huggingface_models_tool = FetchHuggingfaceModelsTool()
|
| 22 |
+
generate_recommendation_report = GenerateRecommendationReport()
|
| 23 |
web_search = WebSearch()
|
| 24 |
final_answer = FinalAnswer()
|
| 25 |
|
|
|
|
| 29 |
|
| 30 |
agent = CodeAgent(
|
| 31 |
model=model,
|
| 32 |
+
tools=[get_system_hardware_specs, fetch_huggingface_models_tool, generate_recommendation_report, web_search],
|
| 33 |
managed_agents=[],
|
| 34 |
max_steps=20,
|
| 35 |
verbosity_level=1,
|