MiniChain icon indicating copy to clipboard operation
MiniChain copied to clipboard

[feature request] untangle `gradio` dependency from minichain "core"

Open samuela opened this issue 1 year ago • 1 comments

gradio is a fairly heavyweight dependency and may not be necessary in production deployments. currently, import minichain requires gradio to be installed via

https://github.com/srush/MiniChain/blob/b79ebc51bdedb836c9265eec2fcc21cd60b17327/minichain/init.py#L16

and

https://github.com/srush/MiniChain/blob/b79ebc51bdedb836c9265eec2fcc21cd60b17327/minichain/gradio.py#L6

would it be possible to untangle gradio from minichain core and make it optional? more generally, would it be possible to build a minichain "core" which additional components then build off of?

samuela avatar Aug 09 '23 20:08 samuela