from conv import converter while True: original_format = input("Input original format: ") target_format = input("Input target format: ") mode = input("Select mode (single or mass): ").strip().lower() if mode == "single": path = input("Input path to picture: ").strip() else: path = input("Input path to folder: ").strip() try: converter.convert(original_format, target_format, path, mode) except Exception as e: print(f"Error: {e}")