rafaym commited on
Commit
4c20b36
·
1 Parent(s): 7553383

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -14,8 +14,8 @@ def func_classi(image):
14
  return dict(zip(categories,map(float,probs)))
15
 
16
 
17
- image=gr.inputs.Image(shape=(192,192))
18
- label=gr.outputs.Label()
19
  examples=('Black people','White people')
20
- demo = gr.Interface(fn=func_classi, inputs="image", outputs="label")
21
  demo.launch(inline=False)
 
14
  return dict(zip(categories,map(float,probs)))
15
 
16
 
17
+ #image=gr.inputs.Image(shape=(192,192))
18
+ #label=gr.outputs.Label()
19
  examples=('Black people','White people')
20
+ demo = gr.Interface(fn=func_classi, inputs=[gr.func_classi()], outputs=[gr.Textbook(label="Results")])
21
  demo.launch(inline=False)