Spaces:
Sleeping
Sleeping
File size: 287 Bytes
01c6d37 dcd3010 01c6d37 |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
import gradio as gr
from transformers import pipeline
pipe = pipeline("text2text-generation", model="xy4286/pegasus-samsum")
def greet(fulltext):
# return "Hello " + name + "!!"
return pipe(fulltext)
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
demo.launch() |