Ashleygxr commited on
Commit
1cee686
·
verified ·
1 Parent(s): b050a76

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -80,7 +80,7 @@ def predict_probability(
80
  # 将 Location 和 ctDNA 转换为数值型
81
  input_data["Location"] = input_data["Location"].map({"Central": 1, "Peripheral": 0})
82
  input_data["ctDNA"] = input_data["ctDNA"].map({"Positive": 1, "Negative": 0})
83
- input_data["Pleural_indentation"] = input_data["Pleural_indentation"].map({"Positive": 1, "Negative": 0})
84
  # 预测
85
  try:
86
  prob = model.predict_proba(input_data)[0][1]
 
80
  # 将 Location 和 ctDNA 转换为数值型
81
  input_data["Location"] = input_data["Location"].map({"Central": 1, "Peripheral": 0})
82
  input_data["ctDNA"] = input_data["ctDNA"].map({"Positive": 1, "Negative": 0})
83
+ input_data["Pleural indentation"] = input_data["Pleural indentation"].map({"Positive": 1, "Negative": 0})
84
  # 预测
85
  try:
86
  prob = model.predict_proba(input_data)[0][1]