Download file_analyzer.py from mahadewa/HF_Agent_Course_Final_Assignment: direct link, hf CLI and curl.
- Browser
- Download file 356 Bytes
-
https://huggingface.co/spaces/mahadewa/HF_Agent_Course_Final_Assignment/resolve/main/file_analyzer.py
- Command line
-
hf download hf://spaces/mahadewa/HF_Agent_Course_Final_Assignment/file_analyzer.py
-
curl -L -o file_analyzer.py https://huggingface.co/spaces/mahadewa/HF_Agent_Course_Final_Assignment/resolve/main/file_analyzer.py
356 Bytes
| from typing import Dict, Any, List, Optional, Tuple | |
| from base_agent import BaseAgent | |
| class FileAnalyzer(BaseAgent): | |
| def __init__(self, model: str): | |
| super().__init__(model=model) | |
| def __call__(self, question: str, file_name: str, **kwargs) -> str: | |
| print(f"FileAnalyzer analyzing file: {file_name}") | |
| return None | |