Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
aalksii
/
nlpaper
like
0
Sleeping
App
Files
Files
Community
e3e6688
nlpaper
/
app.py
Aleksei Artemiev
Add summarizer
e3e6688
over 1 year ago
raw
Copy download link
history
blame
193 Bytes
import
gradio
as
gr
from
predict
import
summarize
def
summarize_text
(
text
):
return
summarize(text)
iface = gr.Interface(fn=summarize_text, inputs=
"text"
, outputs=
"text"
)
iface.launch()