Spaces:
Running
Running
Infinitode Pty Ltd
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ def custom_pad_sequences(sequences, maxlen, padding='pre', value=0):
|
|
15 |
:param value: Float, padding value.
|
16 |
:return: Numpy array with dimensions (number_of_sequences, maxlen)
|
17 |
"""
|
18 |
-
|
19 |
padded_sequences = np.full((len(sequences), maxlen), value)
|
20 |
for i, seq in enumerate(sequences):
|
21 |
if padding == 'pre':
|
|
|
15 |
:param value: Float, padding value.
|
16 |
:return: Numpy array with dimensions (number_of_sequences, maxlen)
|
17 |
"""
|
18 |
+
max_len = 12
|
19 |
padded_sequences = np.full((len(sequences), maxlen), value)
|
20 |
for i, seq in enumerate(sequences):
|
21 |
if padding == 'pre':
|