Spaces:
Build error
Build error
Download agent.py from blaze116/Final_Assignment_Template: direct link, hf CLI and curl.
- Browser
- Download file 349 Bytes
-
https://huggingface.co/spaces/blaze116/Final_Assignment_Template/resolve/main/agent.py
- Command line
-
hf download hf://spaces/blaze116/Final_Assignment_Template/agent.py
-
curl -L -o agent.py https://huggingface.co/spaces/blaze116/Final_Assignment_Template/resolve/main/agent.py
349 Bytes
| class BasicAgent: | |
| def __init__(self): | |
| print("BasicAgent initialized.") | |
| def __call__(self, question: str) -> str: | |
| print(f"Agent received question (first 50 chars): {question[:50]}...") | |
| fixed_answer = "This is a default answer." | |
| print(f"Agent returning fixed answer: {fixed_answer}") | |
| return fixed_answer |