d0r1h commited on
Commit
085bcdc
1 Parent(s): 38e9364

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -3
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.Slider(1, 10, "Sentences")],
7
  outputs = "text",
8
- title = "Legal Documents Summarizer")
9
- interface.launch(debug=True)
 
 
 
 
 
 
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)