Chanjeans commited on
Commit
b33b651
·
verified ·
1 Parent(s): 6571698

현진_임계값 조정

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -1185,7 +1185,7 @@ def predict_depression(text: str):
1185
  kobert_score = max(0.35, min(kobert_score, 0.88))
1186
  xgb_proba = max(0.3, min(xgb_proba, 0.83))
1187
  combined_score = (kobert_score * 0.55) + (xgb_proba * 0.45)
1188
- if combined_score > 0.78:
1189
  label = "상담 권장"
1190
  elif combined_score > 0.7:
1191
  label = "관심 필요"
 
1185
  kobert_score = max(0.35, min(kobert_score, 0.88))
1186
  xgb_proba = max(0.3, min(xgb_proba, 0.83))
1187
  combined_score = (kobert_score * 0.55) + (xgb_proba * 0.45)
1188
+ if combined_score > 0.75:
1189
  label = "상담 권장"
1190
  elif combined_score > 0.7:
1191
  label = "관심 필요"