update app.py with correct image format for input
Browse files
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()
|