✨ (langflow/__main__.py): introduce setting "backend_only" in settings service to control backend behavior
This commit is contained in:
parent
10eaa77399
commit
d7b1028a43
1 changed files with 2 additions and 2 deletions
|
|
@ -140,13 +140,13 @@ def run(
|
|||
)
|
||||
# create path object if path is provided
|
||||
static_files_dir: Optional[Path] = Path(path) if path else None
|
||||
settings_service = get_settings_service()
|
||||
settings_service.set("backend_only", backend_only)
|
||||
app = setup_app(static_files_dir=static_files_dir, backend_only=backend_only)
|
||||
# check if port is being used
|
||||
if is_port_in_use(port, host):
|
||||
port = get_free_port(port)
|
||||
|
||||
settings_service = get_settings_service()
|
||||
|
||||
settings_service.set("worker_timeout", timeout)
|
||||
|
||||
options = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue