# coding=utf-8 # author: xusong # time: 2022/8/23 16:06 """ https://gradio.app/docs/#tabbedinterface-header ## 更多任务 - 抽取式摘要 - 检索式对话 、 抽取式问答 - """ import gradio as gr from demo_sum import sum_iface from demo_mlm import mlm_iface demo = gr.TabbedInterface([sum_iface, mlm_iface], ["生成式摘要", "文本填词", "句子纠错"]) if __name__ == "__main__": demo.launch()