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