diff --git a/gguf-py/gguf/metadata.py b/gguf-py/gguf/metadata.py index 0629306bb7ce2..e807f434689de 100644 --- a/gguf-py/gguf/metadata.py +++ b/gguf-py/gguf/metadata.py @@ -139,11 +139,10 @@ def load_model_card(model_path: Optional[Path] = None) -> dict[str, Any]: break # End of frontmatter else: lines_yaml.append(line) - yaml_content = "\n".join(lines_yaml) + yaml_content = "\n".join(lines_yaml) + "\n" # Quick hack to fix the Norway problem # https://hitchdev.com/strictyaml/why/implicit-typing-removed/ - yaml_content += "\n" yaml_content = yaml_content.replace("- no\n", "- \"no\"\n") if yaml_content: