Spaces:
Build error
Build error
Download TwitterChatBot/tests/utils_test.py from zinoubm/ChatBotInterface: direct link, hf CLI and curl.
- Browser
- Download file 309 Bytes
-
https://huggingface.co/spaces/zinoubm/ChatBotInterface/resolve/main/TwitterChatBot/tests/utils_test.py
- Command line
-
hf download hf://spaces/zinoubm/ChatBotInterface/TwitterChatBot/tests/utils_test.py
-
curl -L -o utils_test.py https://huggingface.co/spaces/zinoubm/ChatBotInterface/resolve/main/TwitterChatBot/tests/utils_test.py
309 Bytes
| from pathlib import Path | |
| from utils import load_prompt | |
| def test_load_prompt_default(): | |
| path = Path("prompts") / "question_answering.txt" | |
| with open(path) as f: | |
| lines = f.readlines() | |
| testing_prompt = "".join(lines) | |
| prompt = load_prompt(path) | |
| assert prompt == testing_prompt | |