Spaces:
Runtime error
Runtime error
Update consult_func.py
Browse files- consult_func.py +1 -1
consult_func.py
CHANGED
@@ -169,7 +169,7 @@ def advice(
|
|
169 |
# if advice1(radio1, radio2, radio3) == "不存在" and advice2(radio4) != "不存在":
|
170 |
# symptoms = "不存在睡眠问题,存在" + advice2(radio4) + "问题且"
|
171 |
if result1==0:
|
172 |
-
(((-1+result2+result3)/3)+1)*50
|
173 |
else:
|
174 |
final_score=(((0.5+result1+result2+result3)/3)+1)*50
|
175 |
|
|
|
169 |
# if advice1(radio1, radio2, radio3) == "不存在" and advice2(radio4) != "不存在":
|
170 |
# symptoms = "不存在睡眠问题,存在" + advice2(radio4) + "问题且"
|
171 |
if result1==0:
|
172 |
+
final_score=(((-1+result2+result3)/3)+1)*50
|
173 |
else:
|
174 |
final_score=(((0.5+result1+result2+result3)/3)+1)*50
|
175 |
|