summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--run.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/run.py b/run.py
index ed036a0..6e176f4 100644
--- a/run.py
+++ b/run.py
@@ -1,6 +1,7 @@
#!/usr/bin/env python2.7
import os
+from subprocess import call
import sys
import getopt
import numpy
@@ -201,7 +202,7 @@ def store_frames(frames, outputPath, inputFirst=None, inputSecond=None, endpoint
writer.close()
if endpoint is not None:
- os.system(["curl",
+ call(["curl",
"-X", "POST",
"-F", "module=morph",
"-F", "activity=morph",
@@ -210,7 +211,7 @@ def store_frames(frames, outputPath, inputFirst=None, inputSecond=None, endpoint
"-F", "datatype=video",
"-F", "file=@" + outputPath,
endpoint
- ]);
+ ])
def tensor_to_image(np_val):