Commit Graph

21 Commits

Author SHA1 Message Date
29fef1e7aa [remove black] And use ruff (#1436)
* nits

* Fixing deps.

* Ruff update.

* Import order matters.

* Fix.

* Revert ruff fix.

* Visualizer.

* Putting back the imports.

---------

Co-authored-by: Nicolas Patry <patry.nicolas@protonmail.com>
2024-03-12 11:24:21 +01:00
6113666624 Updating python formatting. (#1079)
* Updating python formatting.

* Forgot gh action.

* Skipping isort to prevent circular imports.

* Updating stub.

* Removing `isort` (it contradicts `stub.py`).

* Fixing weird stub black/isort disagreeement.
2022-10-05 15:29:33 +02:00
a410903051 Upgrading to black 20.8b1 2020-09-24 09:27:30 -04:00
9672995a56 We use 19.10b0 not 20 here... 2020-09-24 08:57:02 +02:00
8f8156fd2c Adressing first pass of comments. 2020-09-24 08:57:02 +02:00
fab97475e5 Python - Update examples to use new models API 2020-04-06 21:40:23 +02:00
81be207819 Python - Black auto formatting 2020-02-18 10:45:36 -05:00
dd9270a406 Python - Fix example.py for GPT-2
cc @mfuntowicz `from_pretrained` takes only on argument. Do you know if
we can make this compatible otherwise?
2020-02-10 13:51:03 -05:00
8585b761d1 Python - More updates to the new API 2020-02-10 11:57:30 -05:00
505c428f72 Python - Update example.py with new API 2020-02-10 11:55:14 -05:00
374f944e32 Use the same vocabs/merges for Python and Rust comparison.
Signed-off-by: Morgan Funtowicz <morgan@huggingface.co>
2020-01-15 11:57:34 +01:00
cc33418044 Python - Update examples with getter/setter 2020-01-07 15:23:11 -05:00
7eebd06409 Python - Improve imports 2020-01-06 12:03:01 -05:00
3779bf3e19 Python - Update example 2019-12-29 00:38:37 -05:00
a7734ffc9f Python - Update doc and readme for add_prefix_space 2019-12-26 10:34:53 -05:00
4bc5a7bbe7 Python - fix example 2019-12-24 11:20:40 -05:00
036ee603f4 Python - Update example 2019-12-16 18:50:21 -05:00
e93cc62a71 Python - Handle kwargs for bert modules 2019-12-13 15:28:29 -05:00
6c294c60b0 Python - Add Encoding repr + improve example 2019-12-10 15:18:07 -05:00
018f57f054 Python - Update example 2019-12-09 12:51:05 -05:00
6437c40235 Python - PoC Custom PreTokenizer 2019-11-24 00:52:13 -05:00