Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,5 +8,10 @@ def summarize(input):
|
|
| 8 |
return output[0]['summary_text']
|
| 9 |
|
| 10 |
gr.close_all()
|
| 11 |
-
demo = gr.Interface(fn=summarize,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
demo.launch()
|
|
|
|
| 8 |
return output[0]['summary_text']
|
| 9 |
|
| 10 |
gr.close_all()
|
| 11 |
+
demo = gr.Interface(fn=summarize,
|
| 12 |
+
inputs=[gr.Textbox(label="Text to Summarize", lines=6)],
|
| 13 |
+
outputs=[gr.Textbox(label="Result", lines=3)],
|
| 14 |
+
title="Text Summarization with distilbart-cnn",
|
| 15 |
+
description="Summarize any text using the `sshleifer/distilbart-cnn-12-6` model under the hood"
|
| 16 |
+
)
|
| 17 |
demo.launch()
|