save_photo.py 160 B

123456
  1. from PIL import Image
  2. def save_photo(photo: Image.Image, voice_file_name: str):
  3. photo.save(f"{voice_file_name}".replace(".npz", ".png"))
  4. return photo