ipd commited on
Commit
b314aff
1 Parent(s): 2ac89d4
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -25,8 +25,7 @@ def transform_image(img_sample):
25
  transforms.RandomSolarize(threshold=0.75),
26
  transforms.RandomAutocontrast(p=1),
27
  ])
28
- img = Image.open(img_sample)
29
- transformed_img = transform(img)
30
  return transformed_img
31
 
32
  def predict(Image):
@@ -48,7 +47,7 @@ def predict(Image):
48
 
49
 
50
 
51
- image = gr.Image(type="pil")#shape=(224, 224), image_mode="RGB")
52
  #label = gr.Label(label="Grade")
53
 
54
  demo = gr.Interface(
 
25
  transforms.RandomSolarize(threshold=0.75),
26
  transforms.RandomAutocontrast(p=1),
27
  ])
28
+ transformed_img = transform(img_sample)
 
29
  return transformed_img
30
 
31
  def predict(Image):
 
47
 
48
 
49
 
50
+ image = gr.Image(type="pil", shape=(224,224))#shape=(224, 224), image_mode="RGB")
51
  #label = gr.Label(label="Grade")
52
 
53
  demo = gr.Interface(