ptschandl commited on
Commit
e846bea
1 Parent(s): 60c1b24

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -7,6 +7,7 @@ from torchvision import transforms, models
7
  from PIL import Image
8
  import itertools
9
  import numpy as np
 
10
 
11
 
12
  args = {
@@ -72,9 +73,8 @@ If you have a skin change in question, seek contact to your physician.'''
72
 
73
  gr.Interface(
74
  predict,
75
- inputs=gr.Image(type="pil"),
76
- #inputs=gr.inputs.Image(label="Upload a dermatoscopic image", type="filepath"),
77
- outputs=gr.outputs.Label(num_top_classes=len(args.get("dxlabels"))),
78
  title="Dermatoscopic classification",
79
  description=description,
80
  allow_flagging="manual",
 
7
  from PIL import Image
8
  import itertools
9
  import numpy as np
10
+ import os
11
 
12
 
13
  args = {
 
73
 
74
  gr.Interface(
75
  predict,
76
+ inputs=gr.Image(label="Upload a dermatoscopic image", type="pil"),
77
+ outputs=gr.Label(num_top_classes=len(args.get("dxlabels"))),
 
78
  title="Dermatoscopic classification",
79
  description=description,
80
  allow_flagging="manual",