Spaces:
Runtime error
Runtime error
Update game3.py
Browse files
game3.py
CHANGED
@@ -20,9 +20,7 @@ def read3(num_selected_former):
|
|
20 |
|
21 |
min_len = 5
|
22 |
|
23 |
-
|
24 |
-
tokens = tokens[1:-1]
|
25 |
-
while len(tokens) <= min_len or '\\' in text['text'] or '//' in text['text']:
|
26 |
index_selected = random.randint(0,len(content)/2-1)
|
27 |
text = eval(content[int(index_selected*2)])
|
28 |
res_tmp = [(i, 0) for i in text['text'].split(' ')]
|
|
|
20 |
|
21 |
min_len = 5
|
22 |
|
23 |
+
while len(text['text'].split(' ')) <= min_len or '\\' in text['text'] or '//' in text['text']:
|
|
|
|
|
24 |
index_selected = random.randint(0,len(content)/2-1)
|
25 |
text = eval(content[int(index_selected*2)])
|
26 |
res_tmp = [(i, 0) for i in text['text'].split(' ')]
|