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