Spaces:
Runtime error
Runtime error
File size: 285 Bytes
bb68202 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
import gradio as gr
from transformers import pipeline
text_summry = pipeline("summarization", model="facebook/bart-large-cnn")
def summry(input):
output=text_summry(input)
return output
gr.close_all()
demo=gr.Interface(fn=summry,inputs="text",outputs="text")
demo.launch() |