Spaces:
Runtime error
Runtime error
Fixed it
Browse files
app.py
CHANGED
|
@@ -16,7 +16,7 @@ def sample_predict(img):
|
|
| 16 |
img = PILImage.create(img)
|
| 17 |
return {labels[i]: float(probs[i]) for i in range(len(labels))}
|
| 18 |
|
| 19 |
-
intf=gr.Interface(fn=
|
| 20 |
inputs=gr.inputs.Image(shape=(512, 512)),
|
| 21 |
outputs=gr.outputs.Label(num_top_classes=3))
|
| 22 |
|
|
|
|
| 16 |
img = PILImage.create(img)
|
| 17 |
return {labels[i]: float(probs[i]) for i in range(len(labels))}
|
| 18 |
|
| 19 |
+
intf=gr.Interface(fn=sample_predict,
|
| 20 |
inputs=gr.inputs.Image(shape=(512, 512)),
|
| 21 |
outputs=gr.outputs.Label(num_top_classes=3))
|
| 22 |
|