vumichien commited on
Commit
87c9876
Β·
1 Parent(s): bdb4741

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -61,6 +61,7 @@ class BertSemanticDataGenerator(tf.keras.utils.Sequence):
61
  return [input_ids, attention_masks, token_type_ids]
62
 
63
  model = from_pretrained_keras("keras-io/bert-semantic-similarity")
 
64
 
65
  def predict(sentence1, sentence2):
66
  sentence_pairs = np.array([[str(sentence1), str(sentence2)]])
 
61
  return [input_ids, attention_masks, token_type_ids]
62
 
63
  model = from_pretrained_keras("keras-io/bert-semantic-similarity")
64
+ labels = ["contradiction", "entailment", "neutral"]
65
 
66
  def predict(sentence1, sentence2):
67
  sentence_pairs = np.array([[str(sentence1), str(sentence2)]])