Spaces:
Runtime error
Runtime error
File size: 257 Bytes
96135d9 | 1 2 3 4 5 6 7 8 9 10 11 12 | import gradio as gr
from transformers import pipeline
sum = pipeline("summarization", model="facebook/bart-large-cnn")
def stuff(text):
return sum(text)
demo = gr.Interface(fn=stuff, inputs="text", outputs="text")
demo.launch()
# done by Juan Lastra |