symonw commited on
Commit
960b1c0
·
verified ·
1 Parent(s): f107800

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -13
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 remains the same
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
- # Deep Learning Model for Pediatric Bone Age
140
 
141
- This model predicts the bone age from a single frontal view hand radiograph. Read more about the model here:
142
- <https://huggingface.co/ianpan/bone-age>
143
 
144
- There is also an option to output a heatmap over the radiograph to show regions where the model is focusing on
145
- to make its prediction. However, this takes extra computation and will increase the runtime.
146
 
147
- This model is for demonstration purposes only and has NOT been approved by any regulatory agency for clinical use. The user assumes
148
- any and all responsibility regarding their own use of this model and its outputs. Do NOT upload any images containing protected
149
- health information, as this demonstration is not compliant with patient privacy laws.
150
 
151
- Created by: Ian Pan, <https://ianpan.me>
152
-
153
- Last updated: December 16, 2024
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,