Yw22 commited on
Commit
45f3350
1 Parent(s): bc45f69
pipelines/pipeline_imagecoductor.py CHANGED
@@ -2,6 +2,7 @@
2
 
3
  import inspect
4
  import copy
 
5
  from dataclasses import dataclass
6
  from typing import Any, Callable, Dict, List, Optional, Union
7
 
@@ -317,6 +318,7 @@ class ImageConductorPipeline(DiffusionPipeline):
317
  latents = latents * self.scheduler.init_noise_sigma
318
  return latents
319
 
 
320
  @torch.no_grad()
321
  def __call__(
322
  self,
 
2
 
3
  import inspect
4
  import copy
5
+ import spaces
6
  from dataclasses import dataclass
7
  from typing import Any, Callable, Dict, List, Optional, Union
8
 
 
318
  latents = latents * self.scheduler.init_noise_sigma
319
  return latents
320
 
321
+ @spaces.GPU(enable_queue=True, duration=200)
322
  @torch.no_grad()
323
  def __call__(
324
  self,