Spaces:
Sleeping
Sleeping
Update game1.py
Browse files
game1.py
CHANGED
|
@@ -62,7 +62,7 @@ def read1_written(lang):
|
|
| 62 |
# print(res)
|
| 63 |
return text['text']
|
| 64 |
|
| 65 |
-
def func1(lang_selected, num_selected, human_predict, num1, num2,
|
| 66 |
chatbot = []
|
| 67 |
# num1: Human score; num2: AI score
|
| 68 |
if lang_selected in ['en']:
|
|
@@ -131,7 +131,12 @@ def func1(lang_selected, num_selected, human_predict, num1, num2, user_marks):
|
|
| 131 |
# result[label] = out['score']
|
| 132 |
|
| 133 |
user_select = "You focused on "
|
| 134 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 135 |
# for i in range(len(user_marks)):
|
| 136 |
# if user_marks[i][1] != None and h1[i][0] not in ["P", "N"]:
|
| 137 |
# flag_select = True
|
|
|
|
| 62 |
# print(res)
|
| 63 |
return text['text']
|
| 64 |
|
| 65 |
+
def func1(lang_selected, num_selected, human_predict, num1, num2, user_important):
|
| 66 |
chatbot = []
|
| 67 |
# num1: Human score; num2: AI score
|
| 68 |
if lang_selected in ['en']:
|
|
|
|
| 131 |
# result[label] = out['score']
|
| 132 |
|
| 133 |
user_select = "You focused on "
|
| 134 |
+
flag_select = False
|
| 135 |
+
if user_important == None:
|
| 136 |
+
user_select += "nothing. Interesting! "
|
| 137 |
+
else:
|
| 138 |
+
user_select += user_important
|
| 139 |
+
user_select += ". "
|
| 140 |
# for i in range(len(user_marks)):
|
| 141 |
# if user_marks[i][1] != None and h1[i][0] not in ["P", "N"]:
|
| 142 |
# flag_select = True
|