Spaces:
Build error
Build error
description
Browse files
view.py
CHANGED
|
@@ -1,56 +1,55 @@
|
|
| 1 |
-
# Gradio
|
| 2 |
-
examples = [
|
| 3 |
-
[
|
| 4 |
-
[['
|
| 5 |
-
"PT_NO = 10001862, VISIBLE_STONE_CT = True, REAL_STONE = True",
|
| 6 |
-
],
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
]
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
-
|
| 31 |
-
- DUCT_DILIATATION_10MM
|
| 32 |
-
- PANCREATITIS
|
| 33 |
-
|
| 34 |
-
-
|
| 35 |
-
-
|
| 36 |
-
- FIRST_RR
|
| 37 |
-
-
|
| 38 |
-
-
|
| 39 |
-
- WBC
|
| 40 |
-
- ALP
|
| 41 |
-
- ALT
|
| 42 |
-
- AST
|
| 43 |
-
- CRP
|
| 44 |
-
- BILIRUBIN
|
| 45 |
-
-
|
| 46 |
-
|
| 47 |
-
**
|
| 48 |
-
|
| 49 |
-
"""
|
| 50 |
-
|
| 51 |
-
title_markdown = ("""
|
| 52 |
-
#
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
### Copyright ยฉ 2024 Dongguk University (DGU) and Dongguk University Medical Center (DUMC). All rights reserved.
|
| 56 |
""")
|
|
|
|
| 1 |
+
# Gradio
|
| 2 |
+
examples = [
|
| 3 |
+
[
|
| 4 |
+
[['100.0', '24.0', '38.2', '72', '0.0', '1.0', '14.54','236.0','548.0','182.0','12.33','3.2','355.0']],
|
| 5 |
+
"PT_NO = 10001862, VISIBLE_STONE_CT = True, REAL_STONE = True",
|
| 6 |
+
],
|
| 7 |
+
|
| 8 |
+
[
|
| 9 |
+
[['81.0','18.0','36.1','58','0.0','1.0','21.13','196.0','70.0','118.0','1.87','2.7','359.0']],
|
| 10 |
+
"PT_NO = 10007376, VISIBLE_STONE_CT = True, REAL_STONE = True",
|
| 11 |
+
],
|
| 12 |
+
[
|
| 13 |
+
[['80.0','18.0','36.6','63','1.0','0.0','8.45','440.0','199.0','100.0','4.21','4.5','365.0']],
|
| 14 |
+
"PT_NO = 10040285, VISIBLE_STONE_CT = False, REAL_STONE = True",
|
| 15 |
+
],
|
| 16 |
+
[
|
| 17 |
+
[['83.0','20.0','36.7','57','1.0','1.0','8.63','47.0','32.0','59.0','0.02','0.4','359.0']],
|
| 18 |
+
"PT_NO = 10005545, VISIBLE_STONE_CT = False, REAL_STONE = False",
|
| 19 |
+
],
|
| 20 |
+
]
|
| 21 |
+
|
| 22 |
+
tabular_header = ['FIRST_HR', 'FIRST_RR', 'FIRST_BT','AGE', 'PANCREATITIS', 'DUCT_DILIATATION_10MM', 'WBC', 'ALP', 'ALT', 'AST','CRP', 'BILIRUBIN','GGT']
|
| 23 |
+
|
| 24 |
+
description = """
|
| 25 |
+
Due to GPU resource constraints, the online demo is running on 2 vCPUs and 16 GB of RAM. \n
|
| 26 |
+
|
| 27 |
+
**Note**: This model is specifically designed for the diagnosis and prediction of common bile duct(CBD) stones and provides accurate and reliable results. \n
|
| 28 |
+
The input data consists of the following **discrete** and **continuous** variables, all of which play a significant role in the model's performance \n
|
| 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
|
| 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
|
| 49 |
+
"""
|
| 50 |
+
|
| 51 |
+
title_markdown = ("""
|
| 52 |
+
## Development of a Common Bile Duct Stone Prediction Model Using Machine Learning Based on Clinical Data
|
| 53 |
+
[๐[Learn more about Common Bile Duct Stones (https://namu.wiki/w/%EC%B4%9D%EB%8B%B4%EA%B4%80%EA%B2%B0%EC%84%9D%EC%A6%9D)]
|
| 54 |
+
### Copyright ยฉ 2024 Dongguk University (DGU) and Dongguk University Medical Center (DUMC). All rights reserved.
|
|
|
|
| 55 |
""")
|