Selma commited on
Commit
8cc9b12
1 Parent(s): 688302d

update app.py with correct image format for input

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -52,5 +52,5 @@ def classify(image_raw):
52
 
53
  return "The image depicts: " + labels[index[0]] + " with a score of " + str(round(percentage[index[0]].item())) + "%"
54
 
55
- iface = gr.Interface(fn=classify, inputs=gr.Image(type="pil"), outputs="text")
56
  iface.launch()
 
52
 
53
  return "The image depicts: " + labels[index[0]] + " with a score of " + str(round(percentage[index[0]].item())) + "%"
54
 
55
+ iface = gr.Interface(fn=classify, inputs=gr.inputs.Image(type="pil"), outputs="text")
56
  iface.launch()