"...git@developer.sourcefind.cn:chenpangpang/diffusers.git" did not exist on "a5720e9e3124753c85b2260dec5f39d75ce18245"
Make transformers-cli cross-platform (#4131)
* make transformers-cli cross-platform Using "scripts" is a useful option in setup.py particularly when you want to get access to non-python scripts. However, in this case we want to have an entry point into some of our own Python scripts. To do this in a concise, cross-platfom way, we can use entry_points.console_scripts. This change is necessary to provide the CLI on different platforms, which "scripts" does not ensure. Usage remains the same, but the "transformers-cli" script has to be moved (be part of the library) and renamed (underscore + extension) * make style & quality
Showing
transformers-cli
→
src/transformers/commands/transformers_cli.py
100755 → 100644
Please register or sign in to comment