Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -2,10 +2,15 @@ import gradio as gr
|
|
2 |
import requests
|
3 |
from predict import image_inference,video_inference
|
4 |
|
|
|
5 |
|
6 |
|
7 |
path = [['image.jpg'],]
|
8 |
video_path = [['video_.mp4']]
|
|
|
|
|
|
|
|
|
9 |
|
10 |
#image = cv2.imwrite('output.jpg', show_preds_image(path))
|
11 |
inputs_image = [
|
|
|
2 |
import requests
|
3 |
from predict import image_inference,video_inference
|
4 |
|
5 |
+
import gdown
|
6 |
|
7 |
|
8 |
path = [['image.jpg'],]
|
9 |
video_path = [['video_.mp4']]
|
10 |
+
# downloading vide example
|
11 |
+
url = "https://drive.google.com/file/d/1reSYnmarjdmDfR1QFK3NBHzJ5q_8Kyia/view?usp=sharing"
|
12 |
+
output = "video_.mp4"
|
13 |
+
gdown.download(url, output, quiet=False)
|
14 |
|
15 |
#image = cv2.imwrite('output.jpg', show_preds_image(path))
|
16 |
inputs_image = [
|