transformers
100f0bfb - Use lifespan instead of on_event in pipeline web server guide (#50858)

Commit
1 day ago
Use lifespan instead of on_event in pipeline web server guide (#50858) Starlette 1.0 removed the on_event decorator, so the guide's server.py fails at import with AttributeError. Start the model loop from a lifespan context manager instead. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Author
Parents
Loading