Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
cas106
/
hw
like
0
Runtime error
App
Files
Files
Community
5f1d4fa
hw
/
app.py
cas106
Create app.py
777ecf3
over 1 year ago
raw
history
blame
223 Bytes
import
gradio
as
gr
from
transformers
import
pipeline
summarizer = pipeline(
"summarization"
)
def
Summarize
(
txt
):
return
summarizer(text)
demo = gr.Interface(fn=summarize, inputs=
"text"
, outputs=
"text"
)
demo.launch()