Spaces:
Sleeping
Sleeping
Download modules/llm/BaseLLM.py from alienet/EasyTranslator: direct link, hf CLI and curl.
- Browser
- Download file 510 Bytes
-
https://huggingface.co/spaces/alienet/EasyTranslator/resolve/main/modules/llm/BaseLLM.py
- Command line
-
hf download hf://spaces/alienet/EasyTranslator/modules/llm/BaseLLM.py
-
curl -L -o BaseLLM.py https://huggingface.co/spaces/alienet/EasyTranslator/resolve/main/modules/llm/BaseLLM.py
510 Bytes
| from abc import ABC, abstractmethod | |
| class BaseLLM(ABC): | |
| def __init__(self): | |
| pass | |
| def initialize_message(self): | |
| pass | |
| def ai_message(self, payload): | |
| pass | |
| def system_message(self, payload): | |
| pass | |
| def user_message(self, payload): | |
| pass | |
| def get_response(self): | |
| pass | |
| def print_prompt(self): | |
| pass | |