Arnaudding001 commited on
Commit
ef49885
·
1 Parent(s): 87956b4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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,