test-B / t5.py
avreymi's picture
fix t5
10631e7
raw
history blame
173 Bytes
from transformers import pipeline
pipe_flan = pipeline(model="bigscience/bloom-560m")
def t5(input):
output = pipe_flan(input)
return output[0]["generated_text"]