From 4d240147569389bfd4d240ce8e8899f1c22161cd Mon Sep 17 00:00:00 2001 From: swizzcheeze <13037010+swizzcheeze@users.noreply.github.com> Date: Tue, 17 Mar 2026 04:08:32 +0000 Subject: [PATCH 1/2] fix(cli): correct rich console markup closing tags in CLI HUG.py Replaced complex or verbose closing tags like `[/bold #F59E0B]` and `[/bright_green]` with the idiomatic Rich shorthand `[/]`. This ensures styles are terminated correctly and makes the code more robust. Removed associated "FIX HERE" comments. Addresses line 170 and 205 in CLI HUG.py. --- CLI HUG.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/CLI HUG.py b/CLI HUG.py index d629cdd..8b3c860 100644 --- a/CLI HUG.py +++ b/CLI HUG.py @@ -166,8 +166,8 @@ def run_single_download(): console.rule() # Applying user's color preference for success message console.print(f"[#ADFF2F]Success![/#ADFF2F] File downloaded to:") - # Applying user's color preference for path and FIXING the closing tag - console.print(f" [bold #F59E0B]{file_path}[/bold #F59E0B]") # <-- FIX HERE + # Applying user's color preference for path + console.print(f" [bold #F59E0B]{file_path}[/]") except Exception as e: console.rule() @@ -201,8 +201,7 @@ def run_model_download(): console.print(f"\n[magenta]Starting download...[/magenta]") console.print(f" Repo ID: [bold]{repo_id}[/bold]") # Keeping original bold for contrast console.print(f" Save Dir Base: [bright_green]{local_dir_base}[/bright_green]") - # FIXING closing tag typo here - console.print(f" Workers: [bright_green]{workers}[/bright_green]") # <-- FIX HERE + console.print(f" Workers: [bright_green]{workers}[/]") console.rule(f"Starting Download{num_files_str}") model_target_dir = local_dir_base / repo_id From 69e9618552a4d3d57b0d9336f8fd7431267d3092 Mon Sep 17 00:00:00 2001 From: swizzcheeze <13037010+swizzcheeze@users.noreply.github.com> Date: Tue, 17 Mar 2026 05:09:35 +0000 Subject: [PATCH 2/2] fix(cli): correct rich console markup closing tags in CLI HUG.py Replaced complex or verbose closing tags like `[/bold #F59E0B]` and `[/bright_green]` with the idiomatic Rich shorthand `[/]`. This ensures styles are terminated correctly and makes the code more robust. Removed associated "FIX HERE" comments. Addresses line 170 and 205 in CLI HUG.py.