Spaces:
Runtime error
Runtime error
Commit
·
00a12a3
1
Parent(s):
0a88465
Update app.py
Browse files
app.py
CHANGED
|
@@ -48,7 +48,7 @@ def ai_text(text):
|
|
| 48 |
|
| 49 |
|
| 50 |
if __name__ == '__main__':
|
| 51 |
-
|
| 52 |
|
| 53 |
examples = [
|
| 54 |
['真麻烦你了。希望你们好好的跳无'],
|
|
@@ -63,15 +63,9 @@ if __name__ == '__main__':
|
|
| 63 |
ai_text,
|
| 64 |
inputs="textbox",
|
| 65 |
outputs=[
|
| 66 |
-
gr.outputs.
|
| 67 |
-
label="Output",
|
| 68 |
-
# show_legend=True,
|
| 69 |
-
),
|
| 70 |
-
gr.outputs.JSON(
|
| 71 |
-
label="JSON Output"
|
| 72 |
-
)
|
| 73 |
],
|
| 74 |
-
|
| 75 |
title="Chinese Spelling Correction Model shibing624/macbert4csc-base-chinese",
|
| 76 |
description="Copy or input error Chinese text. Submit and the machine will correct text.",
|
| 77 |
article="Link to <a href='https://github.com/shibing624/pycorrector' style='color:blue;' target='_blank\'>Github REPO</a>",
|
|
|
|
| 48 |
|
| 49 |
|
| 50 |
if __name__ == '__main__':
|
| 51 |
+
print(ai_text('少先队员因该为老人让坐'))
|
| 52 |
|
| 53 |
examples = [
|
| 54 |
['真麻烦你了。希望你们好好的跳无'],
|
|
|
|
| 63 |
ai_text,
|
| 64 |
inputs="textbox",
|
| 65 |
outputs=[
|
| 66 |
+
gr.outputs.Textbox()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 67 |
],
|
| 68 |
+
theme="grass",
|
| 69 |
title="Chinese Spelling Correction Model shibing624/macbert4csc-base-chinese",
|
| 70 |
description="Copy or input error Chinese text. Submit and the machine will correct text.",
|
| 71 |
article="Link to <a href='https://github.com/shibing624/pycorrector' style='color:blue;' target='_blank\'>Github REPO</a>",
|