Spaces:
Running
Running
Update app.py
Browse files
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
|
13 |
-
grammar_tool = language_tool_python.
|
|
|
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")
|