Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Pédagogies Multimodales
GrammaColor
Commits
6c609627
Commit
6c609627
authored
Nov 18, 2020
by
Sylvain Coulange
Browse files
passage aux modèles larges et ajout Allowed_hosts i3l
parent
fca04b80
Changes
2
Hide whitespace changes
Inline
Side-by-side
grammacolor/settings.py
View file @
6c609627
...
...
@@ -25,7 +25,7 @@ SECRET_KEY = 'qo%b%2+hpt#2x&7ux_k0tcr#l0ylly0@*s1a-vzhxs-#*jlc6z'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG
=
True
ALLOWED_HOSTS
=
[
'127.0.0.1'
,
'grammacolor.alem-app.fr'
]
ALLOWED_HOSTS
=
[
'127.0.0.1'
,
'grammacolor.alem-app.fr'
,
'grammacolori3l.alem-app.fr'
]
# Application definition
...
...
grammacolorapp/views.py
View file @
6c609627
...
...
@@ -2,8 +2,8 @@ from django.shortcuts import render
from
django.http
import
JsonResponse
import
re
,
json
,
spacy
nlpFr
=
spacy
.
load
(
'fr_core_news_
md
'
)
nlpZh
=
spacy
.
load
(
'zh_core_web_
md
'
)
nlpFr
=
spacy
.
load
(
'fr_core_news_
lg
'
)
nlpZh
=
spacy
.
load
(
'zh_core_web_
lg
'
)
def
home
(
request
):
return
render
(
request
,
'coloriser.html'
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment