stibiumghost commited on
Commit
5b85b46
β€’
1 Parent(s): 801e531

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -15,7 +15,7 @@ def get_answer(question, answer, options):
15
 
16
  def find_score(column_name, questions):
17
  '''Count chosen answers in a given column'''
18
- #global questions
19
  actual = questions[column_name].to_list()
20
  chosen = questions.Choice.to_list()
21
  return sum(a == c for a, c in zip(actual, chosen))
@@ -24,6 +24,7 @@ def find_score(column_name, questions):
24
  def set_score():
25
  '''Return the score (for the human and for the models)'''
26
 
 
27
  global NUM_QUESTIONS
28
  score = find_score(answers[0], questions)
29
  ai_score = {name:find_score(name, questions) for name in answers[1:]}
 
15
 
16
  def find_score(column_name, questions):
17
  '''Count chosen answers in a given column'''
18
+
19
  actual = questions[column_name].to_list()
20
  chosen = questions.Choice.to_list()
21
  return sum(a == c for a, c in zip(actual, chosen))
 
24
  def set_score():
25
  '''Return the score (for the human and for the models)'''
26
 
27
+ global questions
28
  global NUM_QUESTIONS
29
  score = find_score(answers[0], questions)
30
  ai_score = {name:find_score(name, questions) for name in answers[1:]}