Spaces:
Sleeping
Sleeping
Update view.py
Browse files
view.py
CHANGED
|
@@ -1,25 +1,25 @@
|
|
| 1 |
# Gradio
|
| 2 |
examples = [
|
| 3 |
[
|
| 4 |
-
[['100.0',
|
| 5 |
"PT_NO = 10001862, VISIBLE_STONE_CT = True, REAL_STONE = True",
|
| 6 |
],
|
| 7 |
|
| 8 |
[
|
| 9 |
-
[['81.0','
|
| 10 |
"PT_NO = 10007376, VISIBLE_STONE_CT = True, REAL_STONE = True",
|
| 11 |
],
|
| 12 |
[
|
| 13 |
-
[['80.0','
|
| 14 |
"PT_NO = 10040285, VISIBLE_STONE_CT = False, REAL_STONE = True",
|
| 15 |
],
|
| 16 |
[
|
| 17 |
-
[['83.0','
|
| 18 |
"PT_NO = 10005545, VISIBLE_STONE_CT = False, REAL_STONE = False",
|
| 19 |
],
|
| 20 |
]
|
| 21 |
|
| 22 |
-
tabular_header = ['FIRST_HR', '
|
| 23 |
|
| 24 |
description = """
|
| 25 |
Due to GPU resource constraints, the online demo is running on 2 vCPUs and 16 GB of RAM. \n
|
|
@@ -29,20 +29,18 @@ The input data consists of the following **discrete** and **continuous** variabl
|
|
| 29 |
|
| 30 |
- Discrete Variables:
|
| 31 |
- DUCT_DILIATATION_10MM (Presence of common bile duct dilation (≥10mm))
|
| 32 |
-
- PANCREATITIS (Presence of pancreatitis)
|
| 33 |
|
| 34 |
- Continuous Variables:
|
| 35 |
- FIRST_HR: Initial heart rate (Float)
|
| 36 |
-
- FIRST_RR: Initial respiratory rate (Float)
|
| 37 |
- FIRST_BT: Initial body temperature (Float)
|
| 38 |
- AGE: Age (Int)
|
|
|
|
|
|
|
| 39 |
- WBC: White blood cell count (Float)
|
| 40 |
- ALP: Alkaline phosphatase (Float)
|
| 41 |
- ALT: Alanine aminotransferase (Float)
|
| 42 |
- AST: Aspartate aminotransferase (Float)
|
| 43 |
-
- CRP: C-reactive protein (Float)
|
| 44 |
- BILIRUBIN: Bilirubin level (Float)
|
| 45 |
-
- GGT: Gamma-glutamyl transferase (Float)
|
| 46 |
|
| 47 |
**Important**: Changes to the structure of the input data (e.g., adding, removing columns) may affect the model's predictions. \n
|
| 48 |
Therefore, it is essential to retrain or revalidate the model if any modifications are made to the input data structure. \n
|
|
|
|
| 1 |
# Gradio
|
| 2 |
examples = [
|
| 3 |
[
|
| 4 |
+
[['100.0','38.2', '72', '1.0','10.6','171.0','14.54','236.0','548.0','182.0','3.2']],
|
| 5 |
"PT_NO = 10001862, VISIBLE_STONE_CT = True, REAL_STONE = True",
|
| 6 |
],
|
| 7 |
|
| 8 |
[
|
| 9 |
+
[['81.0', '36.1','58','1.0','13.6','388.0','21.13','196.0','70.0','118.0','2.7']],
|
| 10 |
"PT_NO = 10007376, VISIBLE_STONE_CT = True, REAL_STONE = True",
|
| 11 |
],
|
| 12 |
[
|
| 13 |
+
[['80.0','36.6','63','0.0','9.3','103.0','8.45','440.0','199.0','100.0','4.5',]],
|
| 14 |
"PT_NO = 10040285, VISIBLE_STONE_CT = False, REAL_STONE = True",
|
| 15 |
],
|
| 16 |
[
|
| 17 |
+
[['83.0','36.7','57','1.0', '12.1','192.0','8.63','47.0','32.0','59.0','0.4']],
|
| 18 |
"PT_NO = 10005545, VISIBLE_STONE_CT = False, REAL_STONE = False",
|
| 19 |
],
|
| 20 |
]
|
| 21 |
|
| 22 |
+
tabular_header = ['FIRST_HR', 'FIRST_BT','AGE', 'DUCT_DILIATATION_10MM', 'Hb','PLT','WBC', 'ALP', 'ALT', 'AST','BILIRUBIN']
|
| 23 |
|
| 24 |
description = """
|
| 25 |
Due to GPU resource constraints, the online demo is running on 2 vCPUs and 16 GB of RAM. \n
|
|
|
|
| 29 |
|
| 30 |
- Discrete Variables:
|
| 31 |
- DUCT_DILIATATION_10MM (Presence of common bile duct dilation (≥10mm))
|
|
|
|
| 32 |
|
| 33 |
- Continuous Variables:
|
| 34 |
- FIRST_HR: Initial heart rate (Float)
|
|
|
|
| 35 |
- FIRST_BT: Initial body temperature (Float)
|
| 36 |
- AGE: Age (Int)
|
| 37 |
+
- Hb: Hemoglobin level (Float)
|
| 38 |
+
- PLT: Platelet count (Float)
|
| 39 |
- WBC: White blood cell count (Float)
|
| 40 |
- ALP: Alkaline phosphatase (Float)
|
| 41 |
- ALT: Alanine aminotransferase (Float)
|
| 42 |
- AST: Aspartate aminotransferase (Float)
|
|
|
|
| 43 |
- BILIRUBIN: Bilirubin level (Float)
|
|
|
|
| 44 |
|
| 45 |
**Important**: Changes to the structure of the input data (e.g., adding, removing columns) may affect the model's predictions. \n
|
| 46 |
Therefore, it is essential to retrain or revalidate the model if any modifications are made to the input data structure. \n
|