Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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")
|