MBA98 commited on
Commit
dced9ca
·
1 Parent(s): 6749699

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -134,8 +134,11 @@ iface = gr.Interface(
134
  inputs=image,
135
  outputs=label,
136
  title="Diabetic Retinopathy Detector",
137
- description="Drag and drop a fundus eye image to classify it into No DR, Mild DR, or Referable DR (Moderate/Severe/Proliferative DR).\nThis model has an 89% QWK score and 87% Sensitivity and as such, may not always been accurate. Please consult an eye specialist to validate results.",
138
  examples=[f'{examples_dir}/10_left_noDR.jpeg', f'{examples_dir}/329_right_noDR', f'{examples_dir}/439_left_referableDR', f'{examples_dir}/6450_right_referableDR'],
139
- interpretation="default"
 
 
 
140
  )
141
  iface.launch()
 
134
  inputs=image,
135
  outputs=label,
136
  title="Diabetic Retinopathy Detector",
137
+ description="Drag and drop a fundus eye image to classify it into No DR, Mild DR, or Referable DR (Moderate/Severe/Proliferative DR). This model has an 89% QWK score and 87% Sensitivity and as such, may not always been accurate. Please consult an eye specialist to validate results. And if you're an eyecare professional, please help improve the model by flagging incorrect predictions (using the Flag button) for future retraining of the model. Thank you!",
138
  examples=[f'{examples_dir}/10_left_noDR.jpeg', f'{examples_dir}/329_right_noDR', f'{examples_dir}/439_left_referableDR', f'{examples_dir}/6450_right_referableDR'],
139
+ interpretation="default",
140
+ allow_flagging="manual",
141
+ flagging_options=["Incorrect! Should be Referable DR", "Incorrect! Should be Mild DR", "Incorrect! Should be No DR", "Ambiguous"],
142
+ flagging_dir='./flagged'
143
  )
144
  iface.launch()