Horus7 commited on
Commit
7bb1664
1 Parent(s): de0a444

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -47,9 +47,11 @@ def detect(img):
47
 
48
  title = "Orisha"
49
 
50
- iface = gr.Interface(fn=detect,
51
- inputs=gr.Image(type="pil", shape=(256, 256)),
52
- outputs=gr.Textbox(label="Classe", lines=10),
53
- title=title)
 
 
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)