Spaces:
Sleeping
Sleeping
Update app.py
Browse files28 unmodified lines2930313232343536373334353637394038394243404142434428 unmodified lines pipe = pipe.to(device) PIPELINES[mid] = pipe
# load_pipelines()
# if torch.cuda.is_available():# torch_dtype = torch.float16# else:# torch_dtype = torch.float32if torch.cuda.is_available(): torch_dtype = torch.float16else: torch_dtype = torch.float32
# pipe = DiffusionPipeline.from_pretrained(model_repo_id, torch_dtype=torch_dtype)# pipe = pipe.to(device)load_pipelines()
# MAX_SEED = np.iinfo(np.int32).max# MAX_IMAGE_SIZE = 1024MAX_SEED = np.iinfo(np.int32).maxMAX_IMAGE_SIZE = 1024
@spaces.GPU #[uncomment to use ZeroGPU]app.py+7-9