YEHTUT commited on
Commit
c77a11e
1 Parent(s): d89de93

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -128,11 +128,11 @@ detection_model = load_model()
128
 
129
  # predicted_img = predict(image_arr)
130
  # predicted_img.save('predicted.jpg')
131
- Image_tab = Interface(fn=predict,
132
  inputs=gr.Image(type="pil"),
133
  outputs=gr.Image(type="pil")
134
  )
135
- Video_tab = Interface(fn=predict_video,
136
  inputs=gr.Video,
137
  outputs=gr.Video
138
  )
 
128
 
129
  # predicted_img = predict(image_arr)
130
  # predicted_img.save('predicted.jpg')
131
+ Image_tab = gr.Interface(fn=predict,
132
  inputs=gr.Image(type="pil"),
133
  outputs=gr.Image(type="pil")
134
  )
135
+ Video_tab = gr.Interface(fn=predict_video,
136
  inputs=gr.Video,
137
  outputs=gr.Video
138
  )