From 22ac81be9b3fe01bd4333d5b8c7a57959f8c3845 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Fri, 17 Jan 2020 21:07:50 +0100 Subject: or --- cli/app/search/live.py | 2 -- cli/app/settings/app_cfg.py | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'cli') diff --git a/cli/app/search/live.py b/cli/app/search/live.py index 627822b..d98af2f 100644 --- a/cli/app/search/live.py +++ b/cli/app/search/live.py @@ -479,8 +479,6 @@ class Listener: out_img = vs.data2pil(gen_images[0]) to_pil_time_total += time.time() - to_pil_time - if out_img is None: - return save_time = time.time() # out_img.save(os.path.join(path_out, "frame_{:05d}.png".format(i)), format='png', compression_level=3) out_img.save(pipe.stdin, format='png', compression_level=3) diff --git a/cli/app/settings/app_cfg.py b/cli/app/settings/app_cfg.py index 16f5b25..4661f8a 100644 --- a/cli/app/settings/app_cfg.py +++ b/cli/app/settings/app_cfg.py @@ -50,7 +50,7 @@ os.makedirs(DIR_RENDERS, exist_ok=True) # Cortex # ----------------------------------------------------------------------------- -API_REMOTE = os.environ('API_REMOTE') || 'https://lens.neural.garden' +API_REMOTE = os.environ('API_REMOTE') or 'https://lens.neural.garden' # ----------------------------------------------------------------------------- # Model config -- cgit v1.2.3-70-g09d2