You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To solve this problem, We should let clf=None, When we call /wipe(GET).
code show as below:
def wipe():
try:
shutil.rmtree('model')
os.makedirs(model_directory)
global clf
clf = None
return 'Model wiped'
except Exception as e:
print(str(e))
return 'Could not remove and recreate the model directory'
Thinks for sharing your code, have a good day.
The text was updated successfully, but these errors were encountered:
To solve this problem, We should let clf=None, When we call /wipe(GET).
code show as below:
def wipe():
try:
shutil.rmtree('model')
os.makedirs(model_directory)
global clf
clf = None
return 'Model wiped'
Thinks for sharing your code, have a good day.
The text was updated successfully, but these errors were encountered: