Spaces:
Runtime error
Runtime error
app.py
CHANGED
|
@@ -59,7 +59,7 @@ image = gr.inputs.Image(shape=(256, 256))
|
|
| 59 |
label = gr.outputs.Label(num_top_classes=5) # 45
|
| 60 |
examples = ['images/airplane_002.jpg','images/airplane_003.jpg','images/airport_020.jpg','images/airport_075.jpg','images/bridge_679.jpg','images/cloud_227.jpg','images/freeway_159.jpg','images/forest_235.jpg']
|
| 61 |
|
| 62 |
-
intf = gr.Interface(fn=classify_image, inputs=image, outputs=label,
|
| 63 |
|
| 64 |
if __name__ == "__main__":
|
| 65 |
intf.launch(share=True) # ,inline=False
|
|
|
|
| 59 |
label = gr.outputs.Label(num_top_classes=5) # 45
|
| 60 |
examples = ['images/airplane_002.jpg','images/airplane_003.jpg','images/airport_020.jpg','images/airport_075.jpg','images/bridge_679.jpg','images/cloud_227.jpg','images/freeway_159.jpg','images/forest_235.jpg']
|
| 61 |
|
| 62 |
+
intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, interpretation="default", examples=examples)
|
| 63 |
|
| 64 |
if __name__ == "__main__":
|
| 65 |
intf.launch(share=True) # ,inline=False
|