Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,9 @@
|
|
1 |
import gradio as gr
|
|
|
2 |
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
|
|
|
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)
|