Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -24,7 +24,6 @@ from macro_correct import correct_long
|
|
| 24 |
from macro_correct import correct
|
| 25 |
import gradio as gr
|
| 26 |
|
| 27 |
-
# pyinstaller -F xxxx.py
|
| 28 |
|
| 29 |
# pretrained_model_name_or_path = "shibing624/macbert4csc-base-chinese"
|
| 30 |
pretrained_model_name_or_path = "Macropodus/macbert4mdcspell_v3"
|
|
@@ -137,7 +136,7 @@ if __name__ == '__main__':
|
|
| 137 |
macro_correct,
|
| 138 |
inputs='text',
|
| 139 |
outputs='text',
|
| 140 |
-
title="Chinese Spelling Correction Model Macropodus/macbert4mdcspell_v3",
|
| 141 |
description="Copy or input error Chinese text. Submit and the machine will correct text.",
|
| 142 |
article="Link to <a href='https://github.com/yongzhuo/macro-correct' style='color:blue;' target='_blank\'>Github REPO: macro-correct</a>",
|
| 143 |
examples=examples
|
|
|
|
| 24 |
from macro_correct import correct
|
| 25 |
import gradio as gr
|
| 26 |
|
|
|
|
| 27 |
|
| 28 |
# pretrained_model_name_or_path = "shibing624/macbert4csc-base-chinese"
|
| 29 |
pretrained_model_name_or_path = "Macropodus/macbert4mdcspell_v3"
|
|
|
|
| 136 |
macro_correct,
|
| 137 |
inputs='text',
|
| 138 |
outputs='text',
|
| 139 |
+
title="CSC(Chinese Spelling Correction Model) Macropodus/macbert4mdcspell_v3",
|
| 140 |
description="Copy or input error Chinese text. Submit and the machine will correct text.",
|
| 141 |
article="Link to <a href='https://github.com/yongzhuo/macro-correct' style='color:blue;' target='_blank\'>Github REPO: macro-correct</a>",
|
| 142 |
examples=examples
|