Download backend/core/patient_knobs.py from MikelWL/ConverTA: direct link, hf CLI and curl.
- Browser
- Download file 449 Bytes
-
https://huggingface.co/spaces/MikelWL/ConverTA/resolve/main/backend/core/patient_knobs.py
- Command line
-
hf download hf://spaces/MikelWL/ConverTA/backend/core/patient_knobs.py
-
curl -L -o patient_knobs.py https://huggingface.co/spaces/MikelWL/ConverTA/resolve/main/backend/core/patient_knobs.py
449 Bytes
| from __future__ import annotations | |
| from typing import Any | |
| def compile_patient_attributes_overlay(attributes: Any) -> str: | |
| if not isinstance(attributes, list): | |
| return "" | |
| cleaned = [s.strip() for s in attributes if isinstance(s, str) and s.strip()] | |
| if not cleaned: | |
| return "" | |
| bullets = "\n".join(f"- {line}" for line in cleaned) | |
| return "Continue the conversation following these patient attributes:\n" + bullets | |