AustinL commited on
Commit
fda0273
·
verified ·
1 Parent(s): 7b55884

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -1
app.py CHANGED
@@ -17,5 +17,14 @@ image = gr.Image()
17
  labels = gr.Label()
18
  examples = ['Leukemia Cells_allbloodsmear.jpg', 'Healthy Cells_normalbloodsmear.jpg', 'Thalassemia Cells_pathology_thalassemiaminor40x03.jpg']
19
 
20
- intf = gr.Interface(fn=classify_img, inputs=image, outputs=labels, examples=examples)
 
 
 
 
 
 
 
 
 
21
  intf.launch(inline=False, share=True)
 
17
  labels = gr.Label()
18
  examples = ['Leukemia Cells_allbloodsmear.jpg', 'Healthy Cells_normalbloodsmear.jpg', 'Thalassemia Cells_pathology_thalassemiaminor40x03.jpg']
19
 
20
+ intf = gr.Interface(
21
+ fn=classify_image,
22
+ inputs=image,
23
+ outputs=label,
24
+ examples=examples,
25
+ title='Blood Disease Identifier',
26
+ description="Please upload your blood smear image that is greater than 200x magnification to diagnose the patient with the following blood diseases: Sickle Cell Disease, Leukemia, or Thalassemia. <br><br>Please note that the results are not 100% accurate and should only be used as a first means of detection. Please contact a medical professional for more information and possible future action. HematoTech are not liable for any misdiagnosis that may occur.",
27
+ allow_flagging=False,
28
+ article='Sickle cell disease (SCD) is a group of inherited red blood cell disorders. In SCD, the red blood cells become hard and sticky and look like a C-shaped farm tool called a “sickle.” The disease can be managed under proper medical supervision.'
29
+ )
30
  intf.launch(inline=False, share=True)