diff --git a/docs/source/index.mdx b/docs/source/index.mdx index 112e84b82571..ad9e5ef8fa69 100644 --- a/docs/source/index.mdx +++ b/docs/source/index.mdx @@ -190,7 +190,7 @@ Flax), PyTorch, and/or TensorFlow. | Model | Tokenizer slow | Tokenizer fast | PyTorch support | TensorFlow support | Flax Support | -|-----------------------------|----------------|----------------|-----------------|--------------------|--------------| +|:---------------------------:|:--------------:|:--------------:|:---------------:|:------------------:|:------------:| | ALBERT | ✅ | ✅ | ✅ | ✅ | ✅ | | BART | ✅ | ✅ | ✅ | ✅ | ✅ | | BEiT | ❌ | ❌ | ✅ | ❌ | ✅ | diff --git a/utils/check_table.py b/utils/check_table.py index b0f0ed5f9e10..17ab62e4aaae 100644 --- a/utils/check_table.py +++ b/utils/check_table.py @@ -140,7 +140,8 @@ def get_model_table_from_auto_modules(): # Build the table per se table = "|" + "|".join([_center_text(c, w) for c, w in zip(columns, widths)]) + "|\n" - table += "|" + "|".join(["-" * w for w in widths]) + "|\n" + # Use ":-----:" format to center-aligned table cell texts + table += "|" + "|".join([":" + "-" * (w - 2) + ":" for w in widths]) + "|\n" check = {True: "✅", False: "❌"} for name in model_names: