Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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')
|