Spaces:
Runtime error
Runtime error
| # 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( | |
| ) | |