Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ def predict_corrected_calcium(total_calcium, total_protein, albumin):
|
|
13 |
predicted_value = model.predict([[total_calcium, atr]])[0]
|
14 |
|
15 |
# Return the result string
|
16 |
-
return f"{predicted_value:.2f}
|
17 |
|
18 |
# Define the Gradio interface
|
19 |
interface = gr.Interface(fn=predict_corrected_calcium,
|
@@ -21,6 +21,6 @@ interface = gr.Interface(fn=predict_corrected_calcium,
|
|
21 |
gr.inputs.Number(label="Total Protein"),
|
22 |
gr.inputs.Number(label="Albumin")],
|
23 |
outputs=gr.outputs.Textbox(label="Corrected Calcium in mg/dL"),
|
24 |
-
title="
|
25 |
|
26 |
interface.launch()
|
|
|
13 |
predicted_value = model.predict([[total_calcium, atr]])[0]
|
14 |
|
15 |
# Return the result string
|
16 |
+
return f"{predicted_value:.2f}.\n\nThe model has a MSE of 0.06, MAD of 0.08 and R-squared of 0.931."
|
17 |
|
18 |
# Define the Gradio interface
|
19 |
interface = gr.Interface(fn=predict_corrected_calcium,
|
|
|
21 |
gr.inputs.Number(label="Total Protein"),
|
22 |
gr.inputs.Number(label="Albumin")],
|
23 |
outputs=gr.outputs.Textbox(label="Corrected Calcium in mg/dL"),
|
24 |
+
title="XGBoost assisted Calcium Correction (RaCC)")
|
25 |
|
26 |
interface.launch()
|