Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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=
|
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)
|