Spaces:
Runtime error
Runtime error
Update game1.py
Browse files
game1.py
CHANGED
@@ -294,13 +294,12 @@ def interpre1(lang_selected, num_selected):
|
|
294 |
else:
|
295 |
is_subword.append(False)
|
296 |
print(is_subword)
|
297 |
-
|
298 |
interpretation_combined = []
|
299 |
|
300 |
index_tmp = 0
|
301 |
-
while index_tmp < len(interpretation) - 1:
|
302 |
if not is_subword[index_tmp+1]:
|
303 |
-
interpretation_combined.append(interpretation[
|
304 |
index_tmp += 1
|
305 |
else:
|
306 |
text_combined = interpretation[index_tmp][0]
|
|
|
294 |
else:
|
295 |
is_subword.append(False)
|
296 |
print(is_subword)
|
|
|
297 |
interpretation_combined = []
|
298 |
|
299 |
index_tmp = 0
|
300 |
+
while index_tmp < (len(interpretation) - 1):
|
301 |
if not is_subword[index_tmp+1]:
|
302 |
+
interpretation_combined.append(interpretation[index_tmp])
|
303 |
index_tmp += 1
|
304 |
else:
|
305 |
text_combined = interpretation[index_tmp][0]
|