Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
scriptolip
/
360big
like
0
Runtime error
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
8946a01
360big
/
app.py
scriptolip
update 4 app.py
75c6905
verified
5 months ago
raw
Copy download link
history
blame
Safe
Wrap lines
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)