Remove spaCy references and generate new Pipfile.lock

This commit is contained in:
Xevion
2022-03-30 16:00:08 -05:00
parent 73d9fd5454
commit 531c60d163
2 changed files with 1 additions and 385 deletions

9
app.py
View File

@@ -11,7 +11,6 @@ from flask_login import LoginManager, current_user
from flask_sqlalchemy import SQLAlchemy
from werkzeug.security import generate_password_hash
from database import db
import spacy
csrf = CSRFProtect()
@@ -27,14 +26,6 @@ def create_app():
# Heroku deployment
if app.config['ENV'] == 'production':
# # Deal with spacy model downloading
# spacy_model = 'en_core_web_sm'
# try:
# spacy.load(spacy_model)
# except: # If not present, we download
# spacy.cli.download(spacy_model)
# spacy.load(spacy_model)
app.config['SECRET_KEY'] = os.getenv('SECRET_KEY')
app.config['SQLALCHEMY_DATABASE_URI'] = os.getenv('DATABASE_URL', '').replace('postgres://', 'postgresql://', 1)