Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -125,7 +125,7 @@ def predict_bone_age(Radiograph, Sex, Heatmap):
|
|
| 125 |
return "Error during prediction", str(e), None
|
| 126 |
|
| 127 |
|
| 128 |
-
# Gradio UI
|
| 129 |
image = gr.Image(image_mode="L")
|
| 130 |
sex = gr.Radio(["Male", "Female"], type="index", label="Sex")
|
| 131 |
generate_heatmap = gr.Radio(["No", "Yes"], type="index", label="Generate Heatmap?")
|
|
@@ -136,22 +136,22 @@ grad_cam_image = gr.Image(image_mode="RGB", label="Heatmap / Image")
|
|
| 136 |
with gr.Blocks() as demo:
|
| 137 |
gr.Markdown(
|
| 138 |
"""
|
| 139 |
-
|
| 140 |
|
| 141 |
-
|
| 142 |
-
<https://huggingface.co/ianpan/bone-age>
|
| 143 |
|
| 144 |
-
|
| 145 |
-
|
| 146 |
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
|
| 150 |
|
| 151 |
-
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
|
|
|
| 155 |
)
|
| 156 |
gr.Interface(
|
| 157 |
fn=predict_bone_age,
|
|
|
|
| 125 |
return "Error during prediction", str(e), None
|
| 126 |
|
| 127 |
|
| 128 |
+
# Gradio UI
|
| 129 |
image = gr.Image(image_mode="L")
|
| 130 |
sex = gr.Radio(["Male", "Female"], type="index", label="Sex")
|
| 131 |
generate_heatmap = gr.Radio(["No", "Yes"], type="index", label="Generate Heatmap?")
|
|
|
|
| 136 |
with gr.Blocks() as demo:
|
| 137 |
gr.Markdown(
|
| 138 |
"""
|
| 139 |
+
# Deep Learning Model for Pediatric Bone Age
|
| 140 |
|
| 141 |
+
This model predicts the bone age from a single frontal view hand radiograph.
|
|
|
|
| 142 |
|
| 143 |
+
There is also an option to output a heatmap over the radiograph to show regions where the model is focusing on
|
| 144 |
+
to make its prediction. However, this takes extra computation and will increase the runtime.
|
| 145 |
|
| 146 |
+
This model is for demonstration purposes only and has NOT been approved by any regulatory agency for clinical use. The user assumes
|
| 147 |
+
any and all responsibility regarding their own use of this model and its outputs. Do NOT upload any images containing protected
|
| 148 |
+
health information, as this demonstration is not compliant with patient privacy laws.
|
| 149 |
|
| 150 |
+
**System by Simon**
|
| 151 |
+
Contact: ithacks254@gmail.com
|
| 152 |
+
|
| 153 |
+
Forensic age estimation support tool – AI-assisted only. Always verify with qualified expert.
|
| 154 |
+
"""
|
| 155 |
)
|
| 156 |
gr.Interface(
|
| 157 |
fn=predict_bone_age,
|