cybernatedArt commited on
Commit
37695e4
1 Parent(s): 060178d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +25 -3
app.py CHANGED
@@ -25,11 +25,33 @@ def classify_image(inp):
25
  confidences = {labels[i]: float(prediction[i]) for i in range(23)}
26
  return confidences
27
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
 
29
- gr.Interface(fn=classify_image,
 
 
 
 
 
 
30
  inputs=gr.inputs.Image(shape=(256, 256)),
31
- outputs=gr.outputs.Label(num_top_classes=3),
32
- examples=["./123.jpg", "./distal-subungual-onychomycosis-86.jpg"]).launch()
33
 
34
 
35
 
 
25
  confidences = {labels[i]: float(prediction[i]) for i in range(23)}
26
  return confidences
27
 
28
+
29
+ title="SKIN DISEASE PREDICTION"
30
+
31
+ description = "An automated system is proposed for the diagnosis of #23 common skin diseases by using data from clinical images and patient information using deep learning pre-trained ResNet50 model."
32
+
33
+
34
+
35
+
36
+ examples = [
37
+ ['./123.jpg'],
38
+ ['./acne-closed-comedo-2.jpg'],
39
+ ['./distal-subungual-onychomycosis-86.jpg'],
40
+ ['./cherry-angioma-16.jpg'],
41
+ ['./malignant-melanoma-16.jpg'],
42
+ ['./tinea-primary-lesion-15.jpg']
43
+ ]
44
 
45
+
46
+
47
+
48
+
49
+ gr.Interface(fn=classify_image,
50
+ title = title,
51
+ description = description,
52
  inputs=gr.inputs.Image(shape=(256, 256)),
53
+ outputs=gr.outputs.Label(num_top_classes=4),
54
+ examples=examples).launch()
55
 
56
 
57