Update app.py
Browse files
app.py
CHANGED
@@ -43,7 +43,8 @@ def process_input(input_text):
|
|
43 |
for i, word in enumerate(input_text.split()):
|
44 |
clean_text.append(word)
|
45 |
index_list.append(i)
|
46 |
-
|
|
|
47 |
return input_padded, index_list, len(clean_text)
|
48 |
|
49 |
def complete_missing_word(pred_binary, index_list, len_list):
|
|
|
43 |
for i, word in enumerate(input_text.split()):
|
44 |
clean_text.append(word)
|
45 |
index_list.append(i)
|
46 |
+
input_token.append(word)
|
47 |
+
input_padded = pad_sequences(maxlen=512, sequences=[input_token], padding="post", value=0)
|
48 |
return input_padded, index_list, len(clean_text)
|
49 |
|
50 |
def complete_missing_word(pred_binary, index_list, len_list):
|