README / pipe
nelgie's picture
Create pipe
697cf7a verified
Raw History Blame Contribute Delete
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)