Spaces:
Sleeping
Sleeping
Download Src/llm/test.py from kanhacoderx/Documind-AI: direct link, hf CLI and curl.
- Browser
- Download file 197 Bytes
-
https://huggingface.co/spaces/kanhacoderx/Documind-AI/resolve/main/Src/llm/test.py
- Command line
-
hf download hf://spaces/kanhacoderx/Documind-AI/Src/llm/test.py
-
curl -L -o test.py https://huggingface.co/spaces/kanhacoderx/Documind-AI/resolve/main/Src/llm/test.py
197 Bytes
| from Src.llm.generator import Generator | |
| gen=Generator() | |
| context='Transformers use attention mechanism' | |
| query='why do transformer use' | |
| answer=gen.generate(query,context) | |
| print(answer) |