Modify string output
Browse files
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}
|
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")
|