Spaces:
Runtime error
Runtime error
resolving errors
Browse files
app.py
CHANGED
|
@@ -9,7 +9,6 @@ def classify(img):
|
|
| 9 |
return (dict(zip(categories , map(float,probs))))
|
| 10 |
img = gr.inputs.Image(shape=(224))
|
| 11 |
label = gr.outputs.Label()
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
iface = gr.Interface(fn=classify, inputs="video", outputs="label" , examples= example)
|
| 15 |
iface.launch()
|
|
|
|
| 9 |
return (dict(zip(categories , map(float,probs))))
|
| 10 |
img = gr.inputs.Image(shape=(224))
|
| 11 |
label = gr.outputs.Label()
|
| 12 |
+
example = ['accident.jpg' , 'non-accident.jpg']
|
| 13 |
+
iface = gr.Interface(fn=classify, inputs="image", outputs="label" , examples= example)
|
|
|
|
| 14 |
iface.launch()
|