Spaces:
Sleeping
Sleeping
Download reactagent/users/user.py from du-lab/MLR-Copilot: direct link, hf CLI and curl.
- Browser
- Download file 324 Bytes
-
https://huggingface.co/spaces/du-lab/MLR-Copilot/resolve/3ce6f4589500cb3f06dbefd32c19ca32425ca417/reactagent/users/user.py
- Command line
-
hf download hf://spaces/du-lab/MLR-Copilot@3ce6f4589500cb3f06dbefd32c19ca32425ca417/reactagent/users/user.py
-
curl -L -o user.py https://huggingface.co/spaces/du-lab/MLR-Copilot/resolve/3ce6f4589500cb3f06dbefd32c19ca32425ca417/reactagent/users/user.py
324 Bytes
| from abc import ABC, abstractmethod | |
| class User(ABC): | |
| """Base class for interface to user""" | |
| def interact(relevant_history: str, entries: dict, observation: str) -> str: | |
| pass | |
| def indent_text(s, n): | |
| return "\n".join(" "*n + line for line in s.split("\n")) | |