Spaces:
Running
Running
Download assets/css/reasoning.py from Jakob08/moneychatbot: direct link, hf CLI and curl.
- Browser
- Download file 680 Bytes
-
https://huggingface.co/spaces/Jakob08/moneychatbot/resolve/main/assets/css/reasoning.py
- Command line
-
hf download hf://spaces/Jakob08/moneychatbot/assets/css/reasoning.py
-
curl -L -o reasoning.py https://huggingface.co/spaces/Jakob08/moneychatbot/resolve/main/assets/css/reasoning.py
680 Bytes
| # | |
| # SPDX-FileCopyrightText: Hadad <hadad@linuxmail.org> | |
| # SPDX-License-Identifier: Apache-2.0 | |
| # | |
| def styles(reasoning: str, expanded: bool = False) -> str: | |
| open_attr = "open" if expanded else "" | |
| emoji = "🧠" | |
| return f""" | |
| <details {open_attr} style=" | |
| font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; | |
| "> | |
| <summary style=" | |
| font-weight: 700; | |
| font-size: 14px !important; | |
| cursor: pointer; | |
| user-select: none; | |
| "> | |
| {emoji} Reasoning | |
| </summary> | |
| <div style=" | |
| margin-top: 6px; | |
| padding-top: 6px; | |
| font-size: 10px !important; | |
| line-height: 1.7; | |
| letter-spacing: 0.02em; | |
| "> | |
| {reasoning} | |
| </div> | |
| </details> | |
| """ |