JaishnaCodz commited on
Commit
ffcdfc0
·
verified ·
1 Parent(s): 70e9d1b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -10,8 +10,7 @@ from nltk.tokenize import sent_tokenize
10
  nltk.download("punkt")
11
 
12
  # Connect to the local LanguageTool server started via setup.sh
13
- grammar_tool = language_tool_python.LanguageToolPublicAPI('http://localhost:8081/')
14
-
15
 
16
  # Load transformers pipelines
17
  summarizer = pipeline("summarization", model="sshleifer/distilbart-cnn-6-6")
 
10
  nltk.download("punkt")
11
 
12
  # Connect to the local LanguageTool server started via setup.sh
13
+ grammar_tool = language_tool_python.LanguageToolPublicAPI(language='en-US', endpoint='http://localhost:8081/')
 
14
 
15
  # Load transformers pipelines
16
  summarizer = pipeline("summarization", model="sshleifer/distilbart-cnn-6-6")