Skip to content

Commit

Permalink
add newline at correct place
Browse files Browse the repository at this point in the history
  • Loading branch information
ngxson committed Feb 28, 2025
1 parent f6c25d9 commit bd40850
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions gguf-py/gguf/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit bd40850

Please sign in to comment.