Closed Saptarshi-Bandopadhyay closed 2 months ago
all of these are interesting. if you are free, let me know which of these you would like to take.
as for point 3 you can leave it to me because I have an Idea of how to to fix that. the fix I have in mind , keep this :
def load_img(
img: Union[str, bytes, np.ndarray, Image.Image],
output_type: Literal["pil", "numpy", "str", "base64"] = "pil",
) -> Any:
update the exception message to use inspect
to capture all of the supported input types and values and remove the SUPPORTED_INPUT_TYPES
and the SUPPORTED_OUTPUT_TYPES
from the code.
Sure, I'll leave point 3 to you and make a PR for the rest.
I will open a separate issue for 3, once done I will release the new version, thanks a lot for the help with this package !
π Provide a description of the new feature
Can this be refractored to -
If any of these updates seem of importance, I can make a PR on the same βΊοΈ
β Additional Information
No response