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