summaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
Diffstat (limited to 'cli')
-rw-r--r--cli/app/search/live.py2
-rw-r--r--cli/app/settings/app_cfg.py2
2 files changed, 1 insertions, 3 deletions
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