Spaces:
Runtime error
Runtime error
Upload app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ def classify_image(inp):
|
|
21 |
inp = resnet50.preprocess_input(inp)
|
22 |
|
23 |
prediction = model.predict(inp).flatten()
|
24 |
-
confidences = {labels[i]: float(prediction[i]) for i in range(
|
25 |
return confidences
|
26 |
|
27 |
iface = gr.Interface(fn=classify_image,
|
21 |
inp = resnet50.preprocess_input(inp)
|
22 |
|
23 |
prediction = model.predict(inp).flatten()
|
24 |
+
confidences = {labels[i]: float(prediction[i]) for i in range(10)}
|
25 |
return confidences
|
26 |
|
27 |
iface = gr.Interface(fn=classify_image,
|