Spaces:
No application file
No application file
Update model.py
Browse files
model.py
CHANGED
@@ -19,6 +19,7 @@ import warnings
|
|
19 |
warnings.filterwarnings('ignore')
|
20 |
def PAN(Age,ALT,AST,BUN,DBP,INR,Lactate,SpO2,Temperature,WBC,Sepsis,CRRT,MV):
|
21 |
x = np.array([Age,ALT,AST,BUN,DBP,INR,Lactate,SpO2,Temperature,WBC,Sepsis,CRRT,MV])
|
|
|
22 |
prediction = method.predict_proba(x.reshape(1, -1))[:,1]
|
23 |
return prediction
|
24 |
outputs = gr.outputs.Textbox(label='Death Probability')
|
|
|
19 |
warnings.filterwarnings('ignore')
|
20 |
def PAN(Age,ALT,AST,BUN,DBP,INR,Lactate,SpO2,Temperature,WBC,Sepsis,CRRT,MV):
|
21 |
x = np.array([Age,ALT,AST,BUN,DBP,INR,Lactate,SpO2,Temperature,WBC,Sepsis,CRRT,MV])
|
22 |
+
x = sc.transform(x)
|
23 |
prediction = method.predict_proba(x.reshape(1, -1))[:,1]
|
24 |
return prediction
|
25 |
outputs = gr.outputs.Textbox(label='Death Probability')
|