File size: 510 Bytes
9bb3956
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ef9632f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import gradio as gr

def fuduji(name):
    return name
    
demo = gr.Interface(
    title = "这是一个中文复读机",
    description = """
    1.输入中文,它会复读你所说的话\n
    2.我爱huggingface
    """,
    fn=fuduji,
    inputs=[
        gr.Textbox(
            label="输入要复读的中文",
            lines=10,
        ),
    ],
    
    
    
    
    outputs=[
        gr.Textbox(
            label="复读结果",
            lines=10,
        ),
    ],


)

demo.launch()