Update compAnIonv1.py
Browse files- compAnIonv1.py +4 -3
compAnIonv1.py
CHANGED
@@ -29,7 +29,8 @@ import pandas as pd
|
|
29 |
|
30 |
# Import Tensorflow and BERT models
|
31 |
import tensorflow as tf
|
32 |
-
from tensorflow
|
|
|
33 |
from tensorflow.keras import layers
|
34 |
from transformers import BertTokenizer
|
35 |
from transformers import TFBertModel
|
@@ -135,8 +136,8 @@ def run_inference_model(conversations):
|
|
135 |
|
136 |
# Apply Model Prediction to testData
|
137 |
y_pred = inference_model.predict(bert_inputs)
|
138 |
-
prediction = f_one_or_zero(y_pred)
|
139 |
-
return
|
140 |
|
141 |
|
142 |
|
|
|
29 |
|
30 |
# Import Tensorflow and BERT models
|
31 |
import tensorflow as tf
|
32 |
+
from tensorflow.keras
|
33 |
+
#from tensorflow import keras
|
34 |
from tensorflow.keras import layers
|
35 |
from transformers import BertTokenizer
|
36 |
from transformers import TFBertModel
|
|
|
136 |
|
137 |
# Apply Model Prediction to testData
|
138 |
y_pred = inference_model.predict(bert_inputs)
|
139 |
+
#prediction = f_one_or_zero(y_pred)
|
140 |
+
return y_pred
|
141 |
|
142 |
|
143 |
|