def clean_docker_command()

in src/backend/run_backend.py [0:0]


        def clean_docker_command(docker_command: str) -> str:
            # First, join the lines and remove all backslashes and extra whitespace
            docker_command = docker_command.replace("\\\n", " ").strip()
            docker_command = " ".join(docker_command.split())
            
            # Replace token
            token = get_token()
            if token:
                docker_command = docker_command.replace(token, "YOUR_HF_TOKEN")
            
            # Replace home dir with ~
            home_dir = str(Path.home())
            docker_command = docker_command.replace(home_dir, "~")
            
            # Remove --name llm-hardware-benchmark
            docker_command = docker_command.replace("--name llm-hardware-benchmark", "")
            
            return docker_command.strip()