Spaces:
Sleeping
Sleeping
Logeswaransr
commited on
Commit
•
70c110d
1
Parent(s):
6d67247
Updated app.py
Browse files
app.py
CHANGED
@@ -2,5 +2,11 @@ import gradio as gr
|
|
2 |
from Text_Summarization import summarize
|
3 |
|
4 |
gr.close_all()
|
5 |
-
demo = gr.Interface(
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
demo.launch()
|
|
|
2 |
from Text_Summarization import summarize
|
3 |
|
4 |
gr.close_all()
|
5 |
+
demo = gr.Interface(
|
6 |
+
fn=summarize,
|
7 |
+
inputs=[gr.Textbox(label='Text to Summarize', lines=6)],
|
8 |
+
outputs=[gr.Textbox(label='Result', lines=3)],
|
9 |
+
title='Text Summarization with distilBART-cnn',
|
10 |
+
description="Summarize any given text using `sshleifer/distilbart-cnn-12-6` model under the hood!"
|
11 |
+
)
|
12 |
demo.launch()
|