From 4e32fc061a563e757e8d6f691ce161f313a89d12 Mon Sep 17 00:00:00 2001
From: "Mcintosh, Liam S (UG - Computer Science)" <lm00840@surrey.ac.uk>
Date: Sun, 23 May 2021 17:51:05 +0000
Subject: [PATCH] Automatically push to repo

---
 build.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/build.py b/build.py
index 1794e1f..2f481c2 100644
--- a/build.py
+++ b/build.py
@@ -463,7 +463,7 @@ for item in ['mlb', 'vectorizer','model']:
 # os.system("forever restart;cd NodeAPI;pm2 restart /NodeAPI/index.js")
 # print('Restarted services')
 
-
-
+print('Pushing trained pickle models...')
+os.system("git add mlb.pickle vectorizer.pickle model.pickle;git commit -m \"Update re-trained models\"; git push -u origin master")
 
 
-- 
GitLab