Spaces:
Running
Running
shibing624
commited on
Commit
•
ca4fdf7
1
Parent(s):
2bf0ef1
Update app.py
Browse files
app.py
CHANGED
@@ -54,11 +54,11 @@ if __name__ == '__main__':
|
|
54 |
['他法语说的很好,的语也不错'],
|
55 |
['他们的吵翻很不错,再说他们做的咖喱鸡也好吃'],
|
56 |
]
|
57 |
-
|
58 |
output_text = gr.outputs.Textbox()
|
59 |
gr.Interface(
|
60 |
ai_text,
|
61 |
-
inputs=[
|
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.",
|
|
|
54 |
['他法语说的很好,的语也不错'],
|
55 |
['他们的吵翻很不错,再说他们做的咖喱鸡也好吃'],
|
56 |
]
|
57 |
+
input_text = gr.inputs.Textbox(lines=2, placeholder="Enter Query")
|
58 |
output_text = gr.outputs.Textbox()
|
59 |
gr.Interface(
|
60 |
ai_text,
|
61 |
+
inputs=[input_text],
|
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.",
|