DocSrvNyk commited on
Commit
bfad469
·
1 Parent(s): 45792b9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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}. The model is a RDF Regression Model with a MSE of 0.06 and R-squared of 0.931."
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="RandomForestRegressor assisted Calcium Correction (RaCC)")
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()