Spaces:
Runtime error
Runtime error
Update game1.py
Browse files
game1.py
CHANGED
@@ -38,7 +38,7 @@ def read1(lang):
|
|
38 |
# res_empty = None
|
39 |
# checkbox_update = gr.CheckboxGroup.update(choices=tokens, value=None)
|
40 |
|
41 |
-
return res, lang, index_selected, res_empty, 0, 0, []
|
42 |
|
43 |
def read1_written(lang):
|
44 |
if lang in ['en']:
|
@@ -132,7 +132,7 @@ def func1(lang_selected, num_selected, human_predict, num1, num2, user_important
|
|
132 |
|
133 |
user_select = "You focused on "
|
134 |
flag_select = False
|
135 |
-
if user_important ==
|
136 |
user_select += "nothing. Interesting! "
|
137 |
else:
|
138 |
user_select += user_important
|
|
|
38 |
# res_empty = None
|
39 |
# checkbox_update = gr.CheckboxGroup.update(choices=tokens, value=None)
|
40 |
|
41 |
+
return res, lang, index_selected, res_empty, 0, 0, [], ""
|
42 |
|
43 |
def read1_written(lang):
|
44 |
if lang in ['en']:
|
|
|
132 |
|
133 |
user_select = "You focused on "
|
134 |
flag_select = False
|
135 |
+
if user_important == "":
|
136 |
user_select += "nothing. Interesting! "
|
137 |
else:
|
138 |
user_select += user_important
|