HE_music_extractor.py
def try_int_coerce(string: str) -> Union[int, str]:
        """Try to convert string to integer, otherwise keep as string"""
        try:
            return int(string)
        except ValueError:
            return string
Try to convert string to integer, otherwise keep as string
Try to convert string to integer, otherwise keep as string
Try to convert string to integer otherwise keep as string
def try_int_coerce(string: str) -> Union[int, str]:
        try:
            return int(string)
        except ValueError:
            return string
def try_int_coerce ( string : str ) -> Union [ int , str ] : try : return int ( string ) except ValueError : return string
Try to convert string to integer, otherwise keep as string
Try to convert string to integer otherwise keep as string
"""Try to convert string to integer, otherwise keep as string"""
string
str