rafaym commited on
Commit
8d78cf6
·
1 Parent(s): 9cb345b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -39,19 +39,19 @@ def input_img(img):
39
  return processed_output
40
 
41
  #im=PILImage.create(img)
42
- im=PILImage.create('img')
43
- im.thumbnail((192,192))
44
 
45
 
46
 
47
- learn.predict(im)
48
 
49
  categories=('Black people','White people')
50
  def func_classi(img):
51
  pred,idx,probs=learn.predict(img)
52
  return dict(zip(categories,map(float,probs)))
53
 
54
- func_classi(im)
55
  import gradio as gr
56
  image=gr.inputs.Image(shape=(192,192))
57
  label=gr.outputs.Label()
 
39
  return processed_output
40
 
41
  #im=PILImage.create(img)
42
+ # im=PILImage.create('img')
43
+ # im.thumbnail((192,192))
44
 
45
 
46
 
47
+ #learn.predict(im)
48
 
49
  categories=('Black people','White people')
50
  def func_classi(img):
51
  pred,idx,probs=learn.predict(img)
52
  return dict(zip(categories,map(float,probs)))
53
 
54
+ #func_classi(im)
55
  import gradio as gr
56
  image=gr.inputs.Image(shape=(192,192))
57
  label=gr.outputs.Label()