Liusuthu commited on
Commit
77c8745
·
verified ·
1 Parent(s): 33c6159

Update consult_func.py

Browse files
Files changed (1) hide show
  1. consult_func.py +4 -1
consult_func.py CHANGED
@@ -168,7 +168,10 @@ def advice(
168
  # symptoms = "存在" + advice1(radio1, radio2, radio3) + "问题,不存在饮食问题且"
169
  # if advice1(radio1, radio2, radio3) == "不存在" and advice2(radio4) != "不存在":
170
  # symptoms = "不存在睡眠问题,存在" + advice2(radio4) + "问题且"
171
- final_score=(((result1+result2+result3)/3)+1)*50
 
 
 
172
 
173
  SLEEP = advice1(radio1, radio2, radio3)
174
  EAT = advice2(radio4)
 
168
  # symptoms = "存在" + advice1(radio1, radio2, radio3) + "问题,不存在饮食问题且"
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
 
176
  SLEEP = advice1(radio1, radio2, radio3)
177
  EAT = advice2(radio4)