Update user_utils.py
Browse files- 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 |
+
|