Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
)
|