Spaces:
Runtime error
Runtime error
Michelangiolo
commited on
Commit
•
6ba8908
1
Parent(s):
001e37c
bug fix
Browse files
app.py
CHANGED
@@ -11,17 +11,13 @@ def correct_score(score, big_5_indicator):
|
|
11 |
5 : 'Openness'
|
12 |
}
|
13 |
if big_5_sign=='+':
|
14 |
-
print(dict1[big_5_num])
|
15 |
-
print(score)
|
16 |
return [dict1[big_5_num], score]
|
17 |
elif big_5_sign =='-':
|
18 |
-
print(dict1[big_5_num])
|
19 |
-
print(score)
|
20 |
return [dict1[big_5_num], 6-score]
|
21 |
# correct_score(3, big_5_indicator='-2')
|
22 |
|
23 |
def make_question(q):
|
24 |
-
q = gr.Radio(choices=[1, 2, 3, 4, 5], label=q
|
25 |
return q
|
26 |
|
27 |
def calculate_personality_score(questions, list_questions):
|
|
|
11 |
5 : 'Openness'
|
12 |
}
|
13 |
if big_5_sign=='+':
|
|
|
|
|
14 |
return [dict1[big_5_num], score]
|
15 |
elif big_5_sign =='-':
|
|
|
|
|
16 |
return [dict1[big_5_num], 6-score]
|
17 |
# correct_score(3, big_5_indicator='-2')
|
18 |
|
19 |
def make_question(q):
|
20 |
+
q = gr.Radio(choices=[1, 2, 3, 4, 5], label=q) #, value=5
|
21 |
return q
|
22 |
|
23 |
def calculate_personality_score(questions, list_questions):
|