devseek commited on
Commit
f6d7722
·
1 Parent(s): dafa631

resolving errors

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -9,6 +9,7 @@ def classify(img):
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()
 
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
+ example = "vedio1.mp4"
14
+ iface = gr.Interface(fn=classify, inputs="video", outputs="label" , examples= example)
15
  iface.launch()