Fix frameworks table so it's alphabetical (#13118)

* Fix frameworks table so it's alphabetical

* Update index.rst

* Don't differentiate when sorting between upper and lower case
This commit is contained in:
Omar Sanseviero
2021-08-16 15:45:19 +02:00
committed by GitHub
parent 62ba3b6b43
commit c066598c23
2 changed files with 22 additions and 22 deletions

View File

@@ -131,7 +131,7 @@ def get_model_table_from_auto_modules():
# Let's build that table!
model_names = list(model_name_to_config.keys())
model_names.sort()
model_names.sort(key=str.lower)
columns = ["Model", "Tokenizer slow", "Tokenizer fast", "PyTorch support", "TensorFlow support", "Flax Support"]
# We'll need widths to properly display everything in the center (+2 is to leave one extra space on each side).
widths = [len(c) + 2 for c in columns]