Spaces:
Runtime error
Runtime error
File size: 287 Bytes
bb68202 94111f0 c21c3fc bb68202 5d9f12a bb68202 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
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() |