Download pipe from sierre/README: direct link, hf CLI and curl.
- Browser
- Download file 257 Bytes
-
https://huggingface.co/spaces/sierre/README/resolve/main/pipe
- Command line
-
hf download hf://spaces/sierre/README/pipe
-
curl -L -o pipe https://huggingface.co/spaces/sierre/README/resolve/main/pipe
257 Bytes
| # Use a pipeline as a high-level helper | |
| from transformers import pipeline | |
| pipe = pipeline("text-generation", model="meituan-longcat/LongCat-Flash-Chat", trust_remote_code=True) | |
| messages = [ | |
| {"role": "user", "content": "Who are you?"}, | |
| ] | |
| pipe(messages) | |