Closed mfekadu closed 4 years ago
Fixed by
rm nimbus_nlp/models/classification/nlp-model_05_31_2020_14_32_56.pkl
``` ➜ api git:(log-questions-reborn) ./build.py && ./deploy.sh running... python3 -m pip install colorful termcolor ansicolors colorama ✅ it is good. color! wow! running... python3 -m pip install -r requirements.txt ✅ it is good. running... python3 setup_special_files_from_env.py --overwrite-all ✅ it is good. running... python3 -m pip install --upgrade urllib3 ✅ it is good. running... python3 -m spacy download en_core_web_sm ✅ it is good. skipping spacy's `en_core_web_lg` download... nimbus will work with `en_core_web_sm` at least done [2020-05-31 15:04:26 -0700] [99575] [INFO] Starting gunicorn 20.0.4 [2020-05-31 15:04:26 -0700] [99575] [INFO] Listening at: http://0.0.0.0:8080 (99575) [2020-05-31 15:04:26 -0700] [99575] [INFO] Using worker: sync [2020-05-31 15:04:26 -0700] [99608] [INFO] Booting worker with pid: 99608 [2020-05-31 15:04:26 -0700] [99614] [INFO] Booting worker with pid: 99614 [2020-05-31 15:04:26 -0700] [99615] [INFO] Booting worker with pid: 99615 initialized database session initialized NimbusMySQLAlchemy Saved model : /Users/mfekadu/GitHub/api/nimbus_nlp/models/classification/nlp-model_05_31_2020_15_04_28.pkl Inserting into QuestionLog... Saving to database: QuestionLog(question=What is Foaad email?, timestamp=2020-05-31 15:05:04.445050, id=None, is_view=None, metadata=None)... Saved! {'entity': 'Foaad', 'tag': 'PROF', 'normalized entity': 'Foaad', 'input question': 'What is Foaad email?', 'normalized question': 'What is [PROF] email?', 'question class': 'What is the email of [PROF]?'} [(111, ['Sara', 'Ford'], 'ssford@calpoly.edu'), (131, ['Foaad', 'Khosmood'], 'foaad@calpoly.edu')] ```
related to #170