File size: 580 Bytes
101e5d8
 
19fb2f0
101e5d8
19fb2f0
 
101e5d8
19fb2f0
 
 
 
 
c10350f
5b47e63
19fb2f0
 
 
 
62edb7a
101e5d8
62edb7a
0a105e7
19fb2f0
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# coding=utf-8
# author: xusong <xusong28@jd.com>
# time: 2022/8/23 16:06

"""
https://gradio.app/docs/#tabbedinterface-header

## 更多任务
- 抽取式摘要
- 检索式对话 、 抽取式问答
-
"""

import gradio_patch
import gradio as gr
from demo_sum import sum_iface
from demo_mlm import mlm_iface
from demo_corrector import corr_iface
from demo_chatbot_jddc import jddc_iface

demo = gr.TabbedInterface([sum_iface, mlm_iface, corr_iface, jddc_iface], ["生成式摘要", "文本填词", "句子纠错", "对话机器人"])

if __name__ == "__main__":
    demo.launch()