# define inputs adapter_path = "adapters.npz" # same as default max_tokens_str = "140" # must be string # define command command = ['python', 'scripts/lora.py', '--model', model_path, '--adapter-file', adapter_path, '--max-tokens', max_tokens_str, '--prompt', prompt] # run command and print results continuously run_command_with_live_output(command)