Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Commit ·
1041705
1
Parent(s): e97f329
Replace compact panel with medium ASCII art banner
Browse files
agent/utils/terminal_display.py
CHANGED
|
@@ -26,20 +26,23 @@ def get_console() -> Console:
|
|
| 26 |
|
| 27 |
# ── Banner ─────────────────────────────────────────────────────────────
|
| 28 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
def print_banner() -> None:
|
| 30 |
-
logo = Text.from_ansi(
|
| 31 |
-
"\033[38;2;255;200;50m" # warm gold
|
| 32 |
-
" 🤗 Hugging Face Agent\n"
|
| 33 |
-
"\033[0m"
|
| 34 |
-
)
|
| 35 |
_console.print()
|
| 36 |
_console.print(
|
| 37 |
Panel(
|
| 38 |
-
|
| 39 |
-
subtitle="[dim]/help
|
| 40 |
-
border_style="dim",
|
| 41 |
expand=False,
|
| 42 |
-
padding=(0,
|
| 43 |
)
|
| 44 |
)
|
| 45 |
_console.print()
|
|
|
|
| 26 |
|
| 27 |
# ── Banner ─────────────────────────────────────────────────────────────
|
| 28 |
|
| 29 |
+
_BANNER = r"""
|
| 30 |
+
[yellow] _ _ ___ _ _ [/yellow]
|
| 31 |
+
[yellow]| || | __| /_\ __ _ ___ _ _| |_ [/yellow]
|
| 32 |
+
[yellow]| __ | _| / _ \/ _` / -_) ' \ _|[/yellow]
|
| 33 |
+
[yellow]|_||_|_| /_/ \_\__, \___|_||_\__|[/yellow]
|
| 34 |
+
[yellow] |___/ [/yellow]"""
|
| 35 |
+
|
| 36 |
+
|
| 37 |
def print_banner() -> None:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
_console.print()
|
| 39 |
_console.print(
|
| 40 |
Panel(
|
| 41 |
+
_BANNER,
|
| 42 |
+
subtitle="[dim]/help · /quit[/dim]",
|
| 43 |
+
border_style="dim yellow",
|
| 44 |
expand=False,
|
| 45 |
+
padding=(0, 1),
|
| 46 |
)
|
| 47 |
)
|
| 48 |
_console.print()
|