Skip to content

Commit 839834d

Browse files
Added Initial Training trigger
Added trigger to train system on the startup
1 parent ce59f27 commit 839834d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

setup.py

+8
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,11 @@
5050
newStory.save()
5151
except:
5252
print("Stories already exists..skipping..")
53+
54+
try:
55+
print("Training models..")
56+
from app.core.intentClassifier import IntentClassifier
57+
IntentClassifier().train()
58+
print("Training models finished..")
59+
except:
60+
print("Could train models..")

0 commit comments

Comments
 (0)