Update app.py
Browse files
app.py
CHANGED
@@ -47,9 +47,11 @@ def detect(img):
|
|
47 |
|
48 |
title = "Orisha"
|
49 |
|
50 |
-
iface = gr.Interface(
|
51 |
-
|
52 |
-
|
53 |
-
|
|
|
|
|
54 |
|
55 |
iface.launch(inline=False)
|
|
|
47 |
|
48 |
title = "Orisha"
|
49 |
|
50 |
+
iface = gr.Interface(
|
51 |
+
fn=detect,
|
52 |
+
inputs=gr.Image(type="pil", image_mode='RGB'),
|
53 |
+
outputs=gr.Textbox(label="Classe", lines=10),
|
54 |
+
title=title
|
55 |
+
)
|
56 |
|
57 |
iface.launch(inline=False)
|