Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
|
3 |
+
|
4 |
+
def summary(long_text=''):
|
5 |
+
# summ = get_summary(long_text)
|
6 |
+
return "This is the summary"
|
7 |
+
|
8 |
+
examples = [
|
9 |
+
["The Moon's orbit around Earth has"],
|
10 |
+
["The smooth Borealis basin in the Northern Hemisphere covers 40%"],
|
11 |
+
]
|
12 |
+
|
13 |
+
demo = gr.Interface(
|
14 |
+
fn=summary,
|
15 |
+
inputs=gr.inputs.Textbox(lines=5, label="Judgements"),
|
16 |
+
outputs=gr.outputs.Textbox(label="Holding Extraction"),
|
17 |
+
examples=examples
|
18 |
+
)
|
19 |
+
|
20 |
+
demo.launch(share=True)
|