yonghan93 commited on
Commit
a5214cf
·
verified ·
1 Parent(s): d5ccaaa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -139,6 +139,8 @@ if selected == MENU[lang][0]:
139
  # st.write(f"(Probability: {proba:.2%}, Threshold: {threshold:.2f})")
140
 
141
  is_patient = user_type in ["Patient", "病患", "Pesakit"]
 
 
142
  prompt = (
143
  f"As a healthcare professional, explain to the patient what this result '{result}' means "
144
  f"Then, give five actionable lifestyle suggestions "
 
139
  # st.write(f"(Probability: {proba:.2%}, Threshold: {threshold:.2f})")
140
 
141
  is_patient = user_type in ["Patient", "病患", "Pesakit"]
142
+
143
+ if is_patient:
144
  prompt = (
145
  f"As a healthcare professional, explain to the patient what this result '{result}' means "
146
  f"Then, give five actionable lifestyle suggestions "