Yw22 commited on
Commit
a0bf193
1 Parent(s): 9913e3f
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -6,6 +6,7 @@ import uuid
6
  import torch
7
  import torchvision
8
  import json
 
9
 
10
  from PIL import Image
11
  from omegaconf import OmegaConf
@@ -251,6 +252,7 @@ class ImageConductor:
251
 
252
  self.blur_kernel = blur_kernel
253
 
 
254
  @torch.no_grad()
255
  def run(self, first_frame_path, tracking_points, prompt, drag_mode, negative_prompt, seed, randomize_seed, guidance_scale, num_inference_steps, personalized):
256
 
 
6
  import torch
7
  import torchvision
8
  import json
9
+ import spaces
10
 
11
  from PIL import Image
12
  from omegaconf import OmegaConf
 
252
 
253
  self.blur_kernel = blur_kernel
254
 
255
+ @spaces.GPU(enable_queue=True, duration=200)
256
  @torch.no_grad()
257
  def run(self, first_frame_path, tracking_points, prompt, drag_mode, negative_prompt, seed, randomize_seed, guidance_scale, num_inference_steps, personalized):
258