Spaces:
Runtime error
Runtime error
Update consult_func.py
Browse files- consult_func.py +4 -2
consult_func.py
CHANGED
@@ -55,7 +55,7 @@ def advice4(radio5, text3_1, radio8, radio9, radio10):
|
|
55 |
|
56 |
|
57 |
def advice(
|
58 |
-
radio1, radio2, radio3, radio4, radio5, radio6, text3_1, radio8, radio9, radio10
|
59 |
):
|
60 |
symptoms = ""
|
61 |
if advice1(radio1, radio2, radio3) == "不存在" and advice2(radio4) == "不存在":
|
@@ -65,9 +65,11 @@ def advice(
|
|
65 |
if advice1(radio1, radio2, radio3) == "不存在" and advice2(radio4) != "不存在":
|
66 |
symptoms = "不存在睡眠问题,存在" + advice2(radio4) + "问题且"
|
67 |
|
|
|
|
|
68 |
return (
|
69 |
gr.Markdown(visible=True),
|
70 |
-
|
71 |
gr.Textbox(
|
72 |
value="你"
|
73 |
+ symptoms
|
|
|
55 |
|
56 |
|
57 |
def advice(
|
58 |
+
radio1, radio2, radio3, radio4, radio5, radio6, text3_1, radio8, radio9, radio10,result1,result2,result3
|
59 |
):
|
60 |
symptoms = ""
|
61 |
if advice1(radio1, radio2, radio3) == "不存在" and advice2(radio4) == "不存在":
|
|
|
65 |
if advice1(radio1, radio2, radio3) == "不存在" and advice2(radio4) != "不存在":
|
66 |
symptoms = "不存在睡眠问题,存在" + advice2(radio4) + "问题且"
|
67 |
|
68 |
+
final_score=result2+result3
|
69 |
+
|
70 |
return (
|
71 |
gr.Markdown(visible=True),
|
72 |
+
final_score,
|
73 |
gr.Textbox(
|
74 |
value="你"
|
75 |
+ symptoms
|