Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -11,13 +11,12 @@ matplotlib.use("Agg") # 防止服务器无图形界面时报错
|
|
11 |
# 指定输入特征顺序
|
12 |
feature_names = [
|
13 |
"CT value(HU)",
|
14 |
-
"Tumor size(
|
15 |
"ctDNA",
|
16 |
"CEA",
|
17 |
-
"CYFRA21-1",
|
18 |
-
"AAPR",
|
19 |
"Location",
|
20 |
"CYFRA21-1",
|
|
|
21 |
"CA125",
|
22 |
"LDH",
|
23 |
"ANC",
|
@@ -107,7 +106,7 @@ demo = gr.Interface(
|
|
107 |
fn=predict_probability,
|
108 |
inputs=[
|
109 |
gr.Number(label="CT value(HU)"),
|
110 |
-
gr.Number(label="Tumor size(
|
111 |
gr.Dropdown(choices=["Positive", "Negative"], label="ctDNA"),
|
112 |
gr.Number(label="CEA (ng/mL) Normal range: 0-5"),
|
113 |
gr.Dropdown(choices=["Central", "Peripheral"], label="Location"), # 修改为 Dropdown 类型
|
|
|
11 |
# 指定输入特征顺序
|
12 |
feature_names = [
|
13 |
"CT value(HU)",
|
14 |
+
"Tumor size(mm)",
|
15 |
"ctDNA",
|
16 |
"CEA",
|
|
|
|
|
17 |
"Location",
|
18 |
"CYFRA21-1",
|
19 |
+
"AAPR",
|
20 |
"CA125",
|
21 |
"LDH",
|
22 |
"ANC",
|
|
|
106 |
fn=predict_probability,
|
107 |
inputs=[
|
108 |
gr.Number(label="CT value(HU)"),
|
109 |
+
gr.Number(label="Tumor size(mm)"),
|
110 |
gr.Dropdown(choices=["Positive", "Negative"], label="ctDNA"),
|
111 |
gr.Number(label="CEA (ng/mL) Normal range: 0-5"),
|
112 |
gr.Dropdown(choices=["Central", "Peripheral"], label="Location"), # 修改为 Dropdown 类型
|