Spaces:
Runtime error
Runtime error
shibing624
commited on
Commit
·
5c2ee4f
1
Parent(s):
ab414a6
Update app.py
Browse files
app.py
CHANGED
@@ -53,9 +53,13 @@ if __name__ == '__main__':
|
|
53 |
['他法语说的很好,的语也不错'],
|
54 |
['他们的吵翻很不错,再说他们做的咖喱鸡也好吃'],
|
55 |
]
|
56 |
-
|
57 |
output_text = gr.outputs.Textbox()
|
58 |
-
gr.Interface(ai_text,
|
|
|
|
|
|
|
|
|
59 |
title="Chinese Spelling Correction Model shibing624/macbert4csc-base-chinese",
|
60 |
description="Copy or input error Chinese text. Submit and the machine will correct text.",
|
61 |
article="Link to <a href='https://github.com/shibing624/pycorrector' style='color:blue;' target='_blank\'>Github REPO</a>",
|
|
|
53 |
['他法语说的很好,的语也不错'],
|
54 |
['他们的吵翻很不错,再说他们做的咖喱鸡也好吃'],
|
55 |
]
|
56 |
+
inputs = [gr.inputs.Textbox(placeholder="Input chinese text with spell error"), "state"]
|
57 |
output_text = gr.outputs.Textbox()
|
58 |
+
gr.Interface(fn=ai_text,
|
59 |
+
inputs=inputs,
|
60 |
+
outputs=output_text,
|
61 |
+
theme="grass",
|
62 |
+
css=".footer {display:none !important}",
|
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>",
|