SergioMtz commited on
Commit
ab9ad12
·
1 Parent(s): 23bae13

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -17,7 +17,6 @@ START = tf.argmax(tf.constant(reserved_tokens) == "[START]")
17
  END = tf.argmax(tf.constant(reserved_tokens) == "[END]")
18
  PAD = tf.argmax(tf.constant(reserved_tokens) == "[PAD]")
19
  VOCAB_SIZE = len(vocab)
20
- print(VOCAB_SIZE)
21
  D_MODEL = 256
22
  NB_LAYERS = 6
23
  FFN_UNITS = 2048
@@ -50,6 +49,7 @@ def evaluate(sentence):
50
  inputs, _ = text.pad_model_inputs(inputs, max_seq_length = MAX_LENGTH + 2, pad_value = PAD)
51
 
52
  prediction = transformer(inputs, False)
 
53
 
54
  prediction = tf.round(prediction)
55
  print(prediction)
 
17
  END = tf.argmax(tf.constant(reserved_tokens) == "[END]")
18
  PAD = tf.argmax(tf.constant(reserved_tokens) == "[PAD]")
19
  VOCAB_SIZE = len(vocab)
 
20
  D_MODEL = 256
21
  NB_LAYERS = 6
22
  FFN_UNITS = 2048
 
49
  inputs, _ = text.pad_model_inputs(inputs, max_seq_length = MAX_LENGTH + 2, pad_value = PAD)
50
 
51
  prediction = transformer(inputs, False)
52
+ print(prediction)
53
 
54
  prediction = tf.round(prediction)
55
  print(prediction)