karthik18AI's picture
Update app.py
e41074a verified
raw
history blame
270 Bytes
# Use a pipeline as a high-level helper
from transformers import pipeline
messages = [
{"role": "user", "content": "Give a addition of two numbers code in c#?"},
]
pipe = pipeline("text-generation", model="Mxode/minicoder-7M-init",max_new_tokens=100)
pipe(messages)