Spaces:
Runtime error
Runtime error
- app.py +16 -12
- images/{airplane_002.jpg β right/airplane_002.jpg} +0 -0
- images/{airport_002.jpg β right/airport_002.jpg} +0 -0
- images/right/baseball_diamond_018.jpg +0 -0
- images/{beach_002.jpg β right/beach_002.jpg} +0 -0
- images/{bridge_679.jpg β right/bridge_679.jpg} +0 -0
- images/{cloud_227.jpg β right/cloud_227.jpg} +0 -0
- images/{forest_235.jpg β right/forest_235.jpg} +0 -0
- images/{industrial_area_003.jpg β right/industrial_area_003.jpg} +0 -0
- images/{meadow_019.jpg β right/meadow_019.jpg} +0 -0
- images/{rectangular_farmland_218.jpg β right/rectangular_farmland_218.jpg} +0 -0
- images/right/roundabout_028.jpg +0 -0
- images/right/ship_002.jpg +0 -0
- images/{ship_018.jpg β right/ship_018.jpg} +0 -0
- images/{airport_020.jpg β wrong/airport_020.jpg} +0 -0
- images/{freeway_159.jpg β wrong/freeway_159.jpg} +0 -0
app.py
CHANGED
|
@@ -57,18 +57,22 @@ def classify_image(img):
|
|
| 57 |
|
| 58 |
image = gr.inputs.Image(shape=(256, 256))
|
| 59 |
label = gr.outputs.Label(num_top_classes=5)
|
| 60 |
-
examples = ['images/
|
| 61 |
-
'images/
|
| 62 |
-
'images/
|
| 63 |
-
'images/
|
| 64 |
-
'images/
|
| 65 |
-
'images/
|
| 66 |
-
'images/
|
| 67 |
-
'images/
|
| 68 |
-
'images/
|
| 69 |
-
'images/
|
| 70 |
-
'images/
|
| 71 |
-
'images/
|
|
|
|
|
|
|
|
|
|
|
|
|
| 72 |
]
|
| 73 |
|
| 74 |
intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
|
|
|
|
| 57 |
|
| 58 |
image = gr.inputs.Image(shape=(256, 256))
|
| 59 |
label = gr.outputs.Label(num_top_classes=5)
|
| 60 |
+
examples = ['images/right/roundabout_028.jpg',
|
| 61 |
+
'images/right/airplane_002.jpg',
|
| 62 |
+
'images/right/baseball_diamond_018.jpg',
|
| 63 |
+
'images/right/meadow_019.jpg',
|
| 64 |
+
'images/right/ship_002.jpg',
|
| 65 |
+
'images/right/airport_002.jpg',
|
| 66 |
+
'images/right/beach_002.jpg',
|
| 67 |
+
# 'images/right/bridge_679.jpg',
|
| 68 |
+
# 'images/right/cloud_227.jpg',
|
| 69 |
+
# 'images/right/forest_235.jpg',
|
| 70 |
+
# 'images/right/rectangular_farmland_218.jpg',
|
| 71 |
+
# 'images/right/meadow_019.jpg',
|
| 72 |
+
# 'images/right/industrial_area_003.jpg',
|
| 73 |
+
# 'images/right/ship_018.jpg',
|
| 74 |
+
# 'images/freeway_159.jpg',
|
| 75 |
+
'images/wrong/airport_020.jpg',
|
| 76 |
]
|
| 77 |
|
| 78 |
intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
|
images/{airplane_002.jpg β right/airplane_002.jpg}
RENAMED
|
File without changes
|
images/{airport_002.jpg β right/airport_002.jpg}
RENAMED
|
File without changes
|
images/right/baseball_diamond_018.jpg
ADDED
|
images/{beach_002.jpg β right/beach_002.jpg}
RENAMED
|
File without changes
|
images/{bridge_679.jpg β right/bridge_679.jpg}
RENAMED
|
File without changes
|
images/{cloud_227.jpg β right/cloud_227.jpg}
RENAMED
|
File without changes
|
images/{forest_235.jpg β right/forest_235.jpg}
RENAMED
|
File without changes
|
images/{industrial_area_003.jpg β right/industrial_area_003.jpg}
RENAMED
|
File without changes
|
images/{meadow_019.jpg β right/meadow_019.jpg}
RENAMED
|
File without changes
|
images/{rectangular_farmland_218.jpg β right/rectangular_farmland_218.jpg}
RENAMED
|
File without changes
|
images/right/roundabout_028.jpg
ADDED
|
images/right/ship_002.jpg
ADDED
|
images/{ship_018.jpg β right/ship_018.jpg}
RENAMED
|
File without changes
|
images/{airport_020.jpg β wrong/airport_020.jpg}
RENAMED
|
File without changes
|
images/{freeway_159.jpg β wrong/freeway_159.jpg}
RENAMED
|
File without changes
|