Suppress 'Loaded N models' message in batch mode

The message is now suppressed when using --model-list-batch to make
the output cleaner for scripts.
parent 2e86db90
......@@ -2558,7 +2558,7 @@ def print_search_results(results, args):
MODELS = {}
# Check if JSON output is requested (for suppressing log messages)
_json_output = "--json" in sys.argv
_json_output = "--json" in sys.argv or "--model-list-batch" in sys.argv
# Load external models config
_external_models = load_models_config()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment