Spaces:
Paused
Paused
Update app.py
Browse files11 unmodified lines12131415161718192021222311 unmodified lines# For example, you can replace with a local snapshot inside the Space repo.MODEL_ID = os.getenv("MODEL_ID", "Tongyi-MAI/Z-Image-Turbo")dtype = torch.float16 if torch.cuda.is_available() else torch.float32device = "cuda" if torch.cuda.is_available() else "cpu"pipe = DiffusionPipeline.from_pretrained(MODEL_ID,torch_dtype=dtype,use_safetensors=True,)11 unmodified lines121314151617181920212211 unmodified lines# For example, you can replace with a local snapshot inside the Space repo.MODEL_ID = os.getenv("MODEL_ID", "Tongyi-MAI/Z-Image-Turbo")device = "cuda" if torch.cuda.is_available() else "cpu"pipe = DiffusionPipeline.from_pretrained(MODEL_ID,torch_dtype=torch.bfloat16,use_safetensors=True,)
app.py+1-2