jonathang commited on
Commit
10692da
1 Parent(s): 4cb9391

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -39,6 +39,7 @@ class Sequence:
39
 
40
  @classmethod
41
  def prepare(cls, sequence):
 
42
  ie = cls.integer_encoding(sequence)
43
  max_length = 100
44
  padded_ie = pad_sequences([ie], maxlen=max_length, padding='post', truncating='post')
 
39
 
40
  @classmethod
41
  def prepare(cls, sequence):
42
+ sequence = sequence.strip().upper()
43
  ie = cls.integer_encoding(sequence)
44
  max_length = 100
45
  padded_ie = pad_sequences([ie], maxlen=max_length, padding='post', truncating='post')