import os os.putenv("PYTORCH_ENABLE_MPS_FALLBACK", "1") from api import imagine_images, imagine_image_files from schema import ImaginePrompt, ImagineResult, WeightedPrompt