Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -37,8 +37,7 @@ def mbti(x):
|
|
37 |
str_trans, # str representing input in 'User input' Textbox component
|
38 |
fn_index=2
|
39 |
)
|
40 |
-
|
41 |
-
r = sorted(result, key=lambda x : float(x['score']), reverse=True)
|
42 |
|
43 |
return r
|
44 |
|
|
|
37 |
str_trans, # str representing input in 'User input' Textbox component
|
38 |
fn_index=2
|
39 |
)
|
40 |
+
r = sorted(eval(result), key=lambda x : x['score'], reverse=True)
|
|
|
41 |
|
42 |
return r
|
43 |
|