Spaces:
Runtime error
Runtime error
shibing624
commited on
Commit
·
fade9b4
1
Parent(s):
5c2ee4f
Update app.py
Browse files
app.py
CHANGED
@@ -53,11 +53,9 @@ if __name__ == '__main__':
|
|
53 |
['他法语说的很好,的语也不错'],
|
54 |
['他们的吵翻很不错,再说他们做的咖喱鸡也好吃'],
|
55 |
]
|
56 |
-
inputs =
|
57 |
output_text = gr.outputs.Textbox()
|
58 |
-
gr.Interface(
|
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",
|
|
|
53 |
['他法语说的很好,的语也不错'],
|
54 |
['他们的吵翻很不错,再说他们做的咖喱鸡也好吃'],
|
55 |
]
|
56 |
+
inputs = gr.inputs.Textbox(placeholder="Input chinese text with spell error")
|
57 |
output_text = gr.outputs.Textbox()
|
58 |
+
gr.Interface(ai_text, inputs, output_text,
|
|
|
|
|
59 |
theme="grass",
|
60 |
css=".footer {display:none !important}",
|
61 |
title="Chinese Spelling Correction Model shibing624/macbert4csc-base-chinese",
|