jrippert commited on
Commit
c62692a
1 Parent(s): 2c78356

Update compAnIonv1.py

Browse files
Files changed (1) hide show
  1. 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 import keras
 
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 prediction
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