Update app.py
Browse files
app.py
CHANGED
|
@@ -1,9 +1,21 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
from Summarizer.Extractive import summarize
|
| 3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
interface = gr.Interface(fn = summarize,
|
| 5 |
inputs = [gr.inputs.File(),
|
| 6 |
-
gr.inputs.
|
| 7 |
outputs = "text",
|
| 8 |
-
title = "
|
| 9 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from Summarizer.Extractive import summarize
|
| 3 |
|
| 4 |
+
description = """
|
| 5 |
+
<center>
|
| 6 |
+
LegSum is a tool to summarize legal proceedings such as judgment, bills using classical and SOTA models
|
| 7 |
+
</center>
|
| 8 |
+
"""
|
| 9 |
+
article="<p style='text-align: center'> Created by Pawan Trivedi 2022 | <a href='https://github.com/d0r1h/'>GitHub</a></p>"
|
| 10 |
+
|
| 11 |
interface = gr.Interface(fn = summarize,
|
| 12 |
inputs = [gr.inputs.File(),
|
| 13 |
+
gr.inputs.Radio(['Pegasus', 'BERT', 'Lsa', 'SumBasic', 'TextRank'], type="value", label='Model')],
|
| 14 |
outputs = "text",
|
| 15 |
+
title = "LegSum",
|
| 16 |
+
description=description,
|
| 17 |
+
article = article)
|
| 18 |
+
|
| 19 |
+
interface.launch(debug=True,
|
| 20 |
+
share=True,
|
| 21 |
+
enable_queue=True)
|