Spaces:
Runtime error
Runtime error
Commit
·
01c5715
1
Parent(s):
dd01a24
Update app.py
Browse files
app.py
CHANGED
@@ -21,20 +21,32 @@ from datasets import load_dataset
|
|
21 |
|
22 |
#Read data training data.
|
23 |
|
24 |
-
x1 =
|
|
|
|
|
25 |
|
26 |
-
x2 =
|
|
|
|
|
27 |
|
28 |
-
x3 =
|
|
|
|
|
29 |
|
30 |
|
31 |
#Read validation data.
|
32 |
|
33 |
-
x1_valid =
|
|
|
|
|
34 |
|
35 |
-
x2_valid =
|
|
|
|
|
36 |
|
37 |
-
x3_valid =
|
|
|
|
|
38 |
|
39 |
|
40 |
#Define feature names.
|
@@ -241,9 +253,14 @@ with gr.Blocks(title = "NCDB-Chordoma") as demo:
|
|
241 |
gr.Markdown(
|
242 |
"""
|
243 |
<br/>
|
244 |
-
<center><
|
245 |
-
<
|
246 |
-
<center><
|
|
|
|
|
|
|
|
|
|
|
247 |
"""
|
248 |
)
|
249 |
|
|
|
21 |
|
22 |
#Read data training data.
|
23 |
|
24 |
+
x1 = load_dataset("mertkarabacak/NCDB-Chordoma", data_files="36m_data_train.csv", use_auth_token = HF_TOKEN)
|
25 |
+
x1 = pd.DataFrame(x1['train'])
|
26 |
+
x1 = x1.iloc[:, 1:]
|
27 |
|
28 |
+
x2 = load_dataset("mertkarabacak/NCDB-Chordoma", data_files="60m_data_train.csv", use_auth_token = HF_TOKEN)
|
29 |
+
x2 = pd.DataFrame(x2['train'])
|
30 |
+
x2 = x2.iloc[:, 1:]
|
31 |
|
32 |
+
x3 = load_dataset("mertkarabacak/NCDB-Chordoma", data_files="120m_data_train.csv", use_auth_token = HF_TOKEN)
|
33 |
+
x3 = pd.DataFrame(x3['train'])
|
34 |
+
x3 = x3.iloc[:, 1:]
|
35 |
|
36 |
|
37 |
#Read validation data.
|
38 |
|
39 |
+
x1_valid = load_dataset("mertkarabacak/NCDB-Chordoma", data_files="36m_data_valid.csv", use_auth_token = HF_TOKEN)
|
40 |
+
x1_valid = pd.DataFrame(x1_valid['train'])
|
41 |
+
x1_valid = x1_valid.iloc[:, 1:]
|
42 |
|
43 |
+
x2_valid = load_dataset("mertkarabacak/NCDB-Chordoma", data_files="60m_data_valid.csv", use_auth_token = HF_TOKEN)
|
44 |
+
x2_valid = pd.DataFrame(x2_valid['train'])
|
45 |
+
x2_valid = x2_valid.iloc[:, 1:]
|
46 |
|
47 |
+
x3_valid = load_dataset("mertkarabacak/NCDB-Chordoma", data_files="120m_data_valid.csv", use_auth_token = HF_TOKEN)
|
48 |
+
x3_valid = pd.DataFrame(x3_valid['train'])
|
49 |
+
x3_valid = x3_valid.iloc[:, 1:]
|
50 |
|
51 |
|
52 |
#Define feature names.
|
|
|
253 |
gr.Markdown(
|
254 |
"""
|
255 |
<br/>
|
256 |
+
<center><h2>NOT FOR CLINICAL USE</h2><center>
|
257 |
+
<br/>
|
258 |
+
<center><h1>Spinal Chordoma Survival Outcomes</h1></center>
|
259 |
+
<center><h2>Prediction Tool</h2></center>
|
260 |
+
<br/>
|
261 |
+
<center><h3>This web application should not be used to guide any clinical decisions.</h3><center>
|
262 |
+
<br/>
|
263 |
+
<center><i>The publication describing the details of this prediction tool will be posted here upon the acceptance of publication.</i><center>
|
264 |
"""
|
265 |
)
|
266 |
|