We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6417f36 commit afa2c59Copy full SHA for afa2c59
Backend/app.py
@@ -3,6 +3,7 @@
3
# =============================================================
4
# package imports
5
import pipelining
6
+import multiprocessing
7
from flask import Flask, request, jsonify
8
from flask_cors import CORS
9
from flask_sqlalchemy import SQLAlchemy
@@ -298,7 +299,8 @@ def should_call_retrain():
298
299
global counter_filename
300
status = check_counter(counter_filename)
301
if(status):
- call_to_retraining_function()
302
+ p1 = multiprocessing.Process(target=call_to_retraining_function)
303
+ p1.start()
304
reset_counter(counter_filename)
305
else:
306
update_counter(counter_filename)
0 commit comments