Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,8 +16,8 @@ def recognize_image(image):
|
|
| 16 |
return dict(zip(fruit_labels, map(float, probs)))
|
| 17 |
|
| 18 |
|
| 19 |
-
image = gr.inputs.Image(shape=(192,192))
|
| 20 |
-
label = gr.outputs.Label(num_top_classes=5)
|
| 21 |
examples = [
|
| 22 |
'image_1.jpg',
|
| 23 |
'image_2.jpeg',
|
|
|
|
| 16 |
return dict(zip(fruit_labels, map(float, probs)))
|
| 17 |
|
| 18 |
|
| 19 |
+
image = gr.inputs.Image(shape=(192, 192))
|
| 20 |
+
label = gr.outputs.Label(num_top_classes=5) # Remove the unused parameter 'type'
|
| 21 |
examples = [
|
| 22 |
'image_1.jpg',
|
| 23 |
'image_2.jpeg',
|