Spaces:
Runtime error
Runtime error
piperod
commited on
Commit
•
8353801
1
Parent(s):
eddda5a
testing
Browse files
app.py
CHANGED
@@ -1,11 +1,5 @@
|
|
1 |
import gradio as gr
|
2 |
-
import cv2
|
3 |
|
4 |
-
import numpy as np
|
5 |
-
import gradio as gr
|
6 |
-
|
7 |
-
from inference import inference_frame
|
8 |
-
import os
|
9 |
|
10 |
|
11 |
if os.getenv('SYSTEM') == 'spaces':
|
@@ -18,6 +12,14 @@ if os.getenv('SYSTEM') == 'spaces':
|
|
18 |
subprocess.call('pip uninstall -y opencv-python-headless'.split())
|
19 |
subprocess.call('pip install opencv-python-headless==4.5.5.64'.split())
|
20 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
def analize_video(x):
|
22 |
cap = cv2.VideoCapture(x)
|
23 |
path = '/tmp/test/'
|
|
|
1 |
import gradio as gr
|
|
|
2 |
|
|
|
|
|
|
|
|
|
|
|
3 |
|
4 |
|
5 |
if os.getenv('SYSTEM') == 'spaces':
|
|
|
12 |
subprocess.call('pip uninstall -y opencv-python-headless'.split())
|
13 |
subprocess.call('pip install opencv-python-headless==4.5.5.64'.split())
|
14 |
|
15 |
+
import cv2
|
16 |
+
|
17 |
+
import numpy as np
|
18 |
+
import gradio as gr
|
19 |
+
|
20 |
+
from inference import inference_frame
|
21 |
+
import os
|
22 |
+
|
23 |
def analize_video(x):
|
24 |
cap = cv2.VideoCapture(x)
|
25 |
path = '/tmp/test/'
|