Spaces:
Build error
Build error
File size: 306 Bytes
1bd71b4 1be7192 1bd71b4 1be7192 56a9fd1 1340b4d |
1 2 3 4 5 6 7 8 9 10 |
from transformers import FlaxT5ForConditionalGeneration
import gradio as gr
model_flax = FlaxT5ForConditionalGeneration.from_pretrained("thegoodfellas/tgf-flan-t5-base-ptbr")
def summarize(text):
return f"{text} !"
iface = gr.Interface(fn=summarize, inputs="text", outputs="text")
iface.launch() |