Commit
·
94c4f04
1
Parent(s):
599dac0
Update app.py
Browse files
app.py
CHANGED
@@ -5,13 +5,16 @@ from onnx import hub
|
|
5 |
import onnxruntime as ort
|
6 |
import onnx
|
7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
def snap(image, video):
|
9 |
-
onnx_model = onnx.load("M-Raw.onnx")
|
10 |
-
text = onnx.checker.check_model(onnx_model)
|
11 |
-
print("The model is checked")
|
12 |
ort_sess = ort.InferenceSession("M-Raw.onnx")
|
13 |
-
output = ort_sess.run(
|
14 |
-
return [
|
15 |
|
16 |
|
17 |
demo = gr.Interface(
|
|
|
5 |
import onnxruntime as ort
|
6 |
import onnx
|
7 |
|
8 |
+
|
9 |
+
|
10 |
+
onnx_model = onnx.load("M-Raw.onnx")
|
11 |
+
text = onnx.checker.check_model(onnx_model)
|
12 |
+
print("The model is checked")
|
13 |
+
|
14 |
def snap(image, video):
|
|
|
|
|
|
|
15 |
ort_sess = ort.InferenceSession("M-Raw.onnx")
|
16 |
+
output = ort_sess.run(["detections"], image)
|
17 |
+
return [output]
|
18 |
|
19 |
|
20 |
demo = gr.Interface(
|