summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2020-01-17 19:21:37 +0100
committerJules Laplace <julescarbon@gmail.com>2020-01-17 19:21:37 +0100
commit3bf1d7eae82696284f44c4ac3856028785bdf626 (patch)
tree2c84f719d36edb75f87e6f9ac059b13a73805492
parentb1d1021bae53071a9dca737e91e2f409080deff6 (diff)
util
-rw-r--r--cli/app/search/live.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/cli/app/search/live.py b/cli/app/search/live.py
index d41afc4..25d6ec7 100644
--- a/cli/app/search/live.py
+++ b/cli/app/search/live.py
@@ -21,6 +21,7 @@ tf.compat.v1.logging.set_verbosity(tf.compat.v1.logging.ERROR)
sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)), '../../../../live-cortex/rpc/'))
from rpc import CortexRPC
from app.search.params import timestamp
+from app.utils.cortex_utils import results_folder, upload_file_to_cortex
from app.utils.tf_utils import read_checkpoint
from subprocess import Popen, PIPE
@@ -442,7 +443,8 @@ class Listener:
pipe.stdin.close()
pipe.wait()
print("Uploading video...")
- data = upload_file_to_cortex(opt_folder_id, fp_out, datatype='video', activity='live')
+ folder = results_folder()
+ data = upload_file_to_cortex(folder['id'], fp_out, datatype='video', activity='live')
print(json.dumps(data, indent=2))
print("Done")