| 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() |