ianpan commited on
Commit
fce599f
1 Parent(s): 52b2567

Modify string output

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -86,7 +86,7 @@ def predict_bone_age(Radiograph, Sex):
86
  str_output = f"{years} years" if years != 1 else "1 year"
87
  else:
88
  str_output = f"{years} years, {months} months" if months != 1 else f"{years} years, 1 month"
89
- return f"Estimated Bone Age: {str_output}\n(Exact Prediction: {bone_age:0.2f} years)"
90
 
91
 
92
  image = gr.Image(shape=(512, 512), image_mode="L")
 
86
  str_output = f"{years} years" if years != 1 else "1 year"
87
  else:
88
  str_output = f"{years} years, {months} months" if months != 1 else f"{years} years, 1 month"
89
+ return f"Estimated Bone Age: {str_output}"
90
 
91
 
92
  image = gr.Image(shape=(512, 512), image_mode="L")