text-summirzer / app.py
amanmurari's picture
Create app.py
2cbebe0 verified
Raw
History Blame Contribute Delete
231 Bytes
# Use a pipeline as a high-level helper
from transformers import pipeline
import gradio as gr
pipe = pipeline("summarization", model="facebook/bart-large-cnn")
def summ(text: str):
pipe(text)
pipe("hello")
ge.Interface(
)