scripts: added inline script metadata per PEP 723 [no-ci]

This commit is contained in:
Isaac McFadyen 2025-02-02 11:53:29 -05:00
parent 84ec8a58f7
commit 2ae9bb7764
No known key found for this signature in database
3 changed files with 19 additions and 0 deletions

View file

@ -1,4 +1,10 @@
#!/usr/bin/env python3
# /// script
# dependencies = [
# "GitPython",
# "tabulate",
# ]
# ///
import logging
import argparse

View file

@ -1,3 +1,9 @@
# /// script
# dependencies = [
# "requests",
# ]
# ///
from __future__ import annotations
import array

View file

@ -1,4 +1,11 @@
#!/usr/bin/env python
# /// script
# dependencies = [
# "huggingface_hub",
# "requests",
# ]
# ///
'''
Fetches the Jinja chat template of a HuggingFace model.
If a model has multiple chat templates, you can specify the variant name.