Add an example and type enhancement for TextStreamer (#1066)
* typing: GenerationConfig option for TextStreamer
* docs: streaming example with following the style
* docs: streaming description from @xenova's suggestion
Co-authored-by: Joshua Lochner <admin@xenova.com>
* fix: streaming example from @xenova's suggestion
Co-authored-by: Joshua Lochner <admin@xenova.com>
* fix: <pre> tag by wrapping it in a <detail> tag
* fix: remove newlines for proper rendering
---------
Co-authored-by: Joshua Lochner <admin@xenova.com>