360big / app.py
scriptolip's picture
update 4 app.py
75c6905 verified
raw
history blame contribute delete
212 Bytes
# Use a pipeline as a high-level helper
from transformers import pipeline
messages = [
{"role": "user", "content": "Who are you?"},
]
pipe = pipeline("text-generation", model="LLM360/K2-Chat")
pipe(messages)