JRQi commited on
Commit
f10eece
1 Parent(s): 85c8c30

Update game3.py

Browse files
Files changed (1) hide show
  1. game3.py +2 -2
game3.py CHANGED
@@ -58,7 +58,7 @@ def func3(num_selected, human_predict, num1, num2, user_important):
58
  if out['label'] == 'Female':
59
  ai_predict = int(100 * out['score'])
60
  else:
61
- ai_predict = 1 - int(100 * out['score'])
62
 
63
  user_select = "You focused on "
64
  flag_select = False
@@ -159,7 +159,7 @@ def func3_written(text_written, human_predict, lang_written):
159
  if out['label'] == 'Female':
160
  ai_predict = int(100 * out['score'])
161
  else:
162
- ai_predict = 1 - int(100 * out['score'])
163
 
164
  if abs(ai_predict - human_predict) <= 20:
165
  chatbot.append(("AI gives it a close score! 🎉", "⬅️ Feel free to try another one! ⬅️"))
 
58
  if out['label'] == 'Female':
59
  ai_predict = int(100 * out['score'])
60
  else:
61
+ ai_predict = 100 - int(100 * out['score'])
62
 
63
  user_select = "You focused on "
64
  flag_select = False
 
159
  if out['label'] == 'Female':
160
  ai_predict = int(100 * out['score'])
161
  else:
162
+ ai_predict = 100 - int(100 * out['score'])
163
 
164
  if abs(ai_predict - human_predict) <= 20:
165
  chatbot.append(("AI gives it a close score! 🎉", "⬅️ Feel free to try another one! ⬅️"))