shibing624 commited on
Commit
2bf0ef1
1 Parent(s): 16ff65f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -8
app.py CHANGED
@@ -1,8 +1,4 @@
1
  # -*- coding: utf-8 -*-
2
- """
3
- @author:XuMing(xuming624@qq.com)
4
- @description:
5
- """
6
 
7
  import gradio as gr
8
  import operator
@@ -58,12 +54,12 @@ if __name__ == '__main__':
58
  ['他法语说的很好,的语也不错'],
59
  ['他们的吵翻很不错,再说他们做的咖喱鸡也好吃'],
60
  ]
61
-
 
62
  gr.Interface(
63
  ai_text,
64
- inputs=[gr.inputs.Textbox()],
65
- outputs=[gr.outputs.Textbox()],
66
- theme="grass",
67
  title="Chinese Spelling Correction Model shibing624/macbert4csc-base-chinese",
68
  description="Copy or input error Chinese text. Submit and the machine will correct text.",
69
  article="Link to <a href='https://github.com/shibing624/pycorrector' style='color:blue;' target='_blank\'>Github REPO</a>",
 
1
  # -*- coding: utf-8 -*-
 
 
 
 
2
 
3
  import gradio as gr
4
  import operator
 
54
  ['他法语说的很好,的语也不错'],
55
  ['他们的吵翻很不错,再说他们做的咖喱鸡也好吃'],
56
  ]
57
+ input = gr.inputs.Textbox(lines=2, placeholder="Enter Query")
58
+ output_text = gr.outputs.Textbox()
59
  gr.Interface(
60
  ai_text,
61
+ inputs=[input],
62
+ outputs=[output_text],
 
63
  title="Chinese Spelling Correction Model shibing624/macbert4csc-base-chinese",
64
  description="Copy or input error Chinese text. Submit and the machine will correct text.",
65
  article="Link to <a href='https://github.com/shibing624/pycorrector' style='color:blue;' target='_blank\'>Github REPO</a>",