Spaces:
Runtime error
Runtime error
Commit ·
ef49885
1
Parent(s): 87956b4
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,13 +9,13 @@ tool = language_tool_python.LanguageToolPublicAPI('fr')
|
|
| 9 |
# print(corrected_text)
|
| 10 |
|
| 11 |
def inference(text):
|
| 12 |
-
input_text =
|
| 13 |
output = tool.correct(input_text)
|
| 14 |
-
return output
|
| 15 |
|
| 16 |
title = "法语语法修改App"
|
| 17 |
|
| 18 |
-
description = "将需要校对的文字贴在左侧方框中,点击Submit,稍等片刻,右侧Output将给出
|
| 19 |
|
| 20 |
gr.Interface(
|
| 21 |
inference,
|
|
|
|
| 9 |
# print(corrected_text)
|
| 10 |
|
| 11 |
def inference(text):
|
| 12 |
+
input_text = text
|
| 13 |
output = tool.correct(input_text)
|
| 14 |
+
return print(output)
|
| 15 |
|
| 16 |
title = "法语语法修改App"
|
| 17 |
|
| 18 |
+
description = "将需要校对的文字贴在左侧方框中,点击Submit,稍等片刻,右侧Output将给出修改后的文本,字数限制300字。"
|
| 19 |
|
| 20 |
gr.Interface(
|
| 21 |
inference,
|