fal-ai / fal

⚡ Fastest way to serve open source ML models to millions
https://fal.ai/docs
Apache License 2.0
549 stars 47 forks source link

fix(cli): use conventional __main__.py #129

Closed efiop closed 7 months ago

efiop commented 7 months ago

This allows people to run fal like so python -m fal. I don't think anyone was using python -m fal.cli, but have to clarify that this patch makes it no longer work, which could be considered a breaking change.

Also it is common for people to expect a __main__.py to be present, so this should be useful for anyone lurking around.