gutai123 commited on
Commit
3b52ee4
·
verified ·
1 Parent(s): 8bcd7b2

Update user_utils.py

Browse files
Files changed (1) hide show
  1. user_utils.py +7 -0
user_utils.py CHANGED
@@ -48,3 +48,10 @@ def get_answer(docs, user_input):
48
 
49
  return response['answer']
50
 
 
 
 
 
 
 
 
 
48
 
49
  return response['answer']
50
 
51
+
52
+
53
+ def predict(query_result):
54
+ Fitmodel = joblib.load('modelsvm.pk1')
55
+ result=Fitmodel.predict([query_result])
56
+ return result[0]
57
+