Spaces:
Runtime error
Runtime error
Update game1.py
Browse files
game1.py
CHANGED
@@ -27,7 +27,7 @@ def read1(lang):
|
|
27 |
text = eval(content[int(index_selected*2)])
|
28 |
res_tmp = [(i, 0) for i in tokens]
|
29 |
res = {"original": text['text'], "interpretation": res_tmp}
|
30 |
-
res_empty = {"original": "", "interpretation": []}
|
31 |
|
32 |
# res = []
|
33 |
# res.append(("P", "+"))
|
@@ -39,7 +39,7 @@ def read1(lang):
|
|
39 |
# res_empty = None
|
40 |
# checkbox_update = gr.CheckboxGroup.update(choices=tokens, value=None)
|
41 |
|
42 |
-
return res, lang, index_selected
|
43 |
|
44 |
def read1_written(lang):
|
45 |
if lang in ['en']:
|
|
|
27 |
text = eval(content[int(index_selected*2)])
|
28 |
res_tmp = [(i, 0) for i in tokens]
|
29 |
res = {"original": text['text'], "interpretation": res_tmp}
|
30 |
+
# res_empty = {"original": "", "interpretation": []}
|
31 |
|
32 |
# res = []
|
33 |
# res.append(("P", "+"))
|
|
|
39 |
# res_empty = None
|
40 |
# checkbox_update = gr.CheckboxGroup.update(choices=tokens, value=None)
|
41 |
|
42 |
+
return res, lang, index_selected
|
43 |
|
44 |
def read1_written(lang):
|
45 |
if lang in ['en']:
|