Update app.py
Browse files
app.py
CHANGED
@@ -41,11 +41,11 @@ def classify_image(image):
|
|
41 |
|
42 |
iface = gr.Interface(
|
43 |
fn=classify_image,
|
44 |
-
inputs=
|
45 |
outputs=[
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
],
|
50 |
examples=[
|
51 |
['examples/0.jpg'],
|
|
|
41 |
|
42 |
iface = gr.Interface(
|
43 |
fn=classify_image,
|
44 |
+
inputs=components.Image(shape=(256, 256)),
|
45 |
outputs=[
|
46 |
+
components.Textbox(label="Result"),
|
47 |
+
components.Number(label="Confidence"),
|
48 |
+
components.Textbox(label="Details")
|
49 |
],
|
50 |
examples=[
|
51 |
['examples/0.jpg'],
|