Spaces:
Running
Running
Download tools/generate_recommendation_report.py from maubilli/BestLocalModelAgent: direct link, hf CLI and curl.
- Browser
- Download file 1.15 kB
-
https://huggingface.co/spaces/maubilli/BestLocalModelAgent/resolve/main/tools/generate_recommendation_report.py
- Command line
-
hf download hf://spaces/maubilli/BestLocalModelAgent/tools/generate_recommendation_report.py
-
curl -L -o generate_recommendation_report.py https://huggingface.co/spaces/maubilli/BestLocalModelAgent/resolve/main/tools/generate_recommendation_report.py
1.15 kB
| from smolagents import Tool | |
| from typing import Any, Optional | |
| class SimpleTool(Tool): | |
| name = "generate_recommendation_report" | |
| description = "Generates the complete formatted hardware analysis, recommendation report, and live Hugging Face model list." | |
| inputs = {'focus': {'type': 'string', 'nullable': True, 'description': "The user's focus preference: 'balanced', 'coding', 'reasoning', or 'lightweight'."}, 'force_refresh': {'type': 'boolean', 'nullable': True, 'description': 'If True, fetches fresh model data from Hugging Face.'}} | |
| output_type = "string" | |
| def forward(self, focus: 'str' = 'balanced', force_refresh: 'bool' = False) -> 'str': | |
| """Generates the complete formatted hardware analysis, recommendation report, and live Hugging Face model list. | |
| Args: | |
| focus: The user's focus preference: 'balanced', 'coding', 'reasoning', or 'lightweight'. | |
| force_refresh: If True, fetches fresh model data from Hugging Face. | |
| """ | |
| from agents.bestLocalModel import format_recommendation_report | |
| return format_recommendation_report(focus=focus, force_refresh=force_refresh) |