From 5a412245605fd53d89329e1da9ac07aa35e9b268 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Boschi?= Date: Wed, 19 Jun 2024 14:09:20 +0200 Subject: [PATCH] fix: do not open browser on backend_only mode --- src/backend/base/langflow/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/base/langflow/__main__.py b/src/backend/base/langflow/__main__.py index 343188336..4234e892c 100644 --- a/src/backend/base/langflow/__main__.py +++ b/src/backend/base/langflow/__main__.py @@ -167,7 +167,7 @@ def run( else: # Run using gunicorn on Linux process = run_on_mac_or_linux(host, port, log_level, options, app) - if open_browser: + if open_browser and not backend_only: click.launch(f"http://{host}:{port}") if process: process.join()