JaishnaCodz commited on
Commit
51e1dd3
·
verified ·
1 Parent(s): 2867d5b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -9,8 +9,9 @@ from nltk.tokenize import sent_tokenize
9
  # Download punkt tokenizer
10
  nltk.download("punkt")
11
 
12
- # Connect to local LanguageTool server (started via setup.sh)
13
- grammar_tool = language_tool_python.LanguageTool('en-US', host='localhost', port=8081)
 
14
 
15
  # Load transformers pipelines
16
  summarizer = pipeline("summarization", model="sshleifer/distilbart-cnn-6-6")
 
9
  # Download punkt tokenizer
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")