Spaces:
Runtime error
Runtime error
Update game1.py
Browse files
game1.py
CHANGED
@@ -26,7 +26,7 @@ def read1(lang, num_selected_former):
|
|
26 |
while len(tokens) <= min_len or '\\' in text['text'] or '//' in text['text']:
|
27 |
index_selected = random.randint(0,len(content)/2-1)
|
28 |
text = eval(content[int(index_selected*2)])
|
29 |
-
res_tmp = [(i, 0) for i in
|
30 |
res = {"original": text['text'], "interpretation": res_tmp}
|
31 |
# res_empty = {"original": "", "interpretation": []}
|
32 |
|
|
|
26 |
while len(tokens) <= min_len or '\\' in text['text'] or '//' in text['text']:
|
27 |
index_selected = random.randint(0,len(content)/2-1)
|
28 |
text = eval(content[int(index_selected*2)])
|
29 |
+
res_tmp = [(i, 0) for i in text['text'].split(' ')]
|
30 |
res = {"original": text['text'], "interpretation": res_tmp}
|
31 |
# res_empty = {"original": "", "interpretation": []}
|
32 |
|