Anonymous commited on
Commit
9f9e664
1 Parent(s): 11ba8fa

add spaces

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -11,6 +11,7 @@ import torch
11
  import torchvision
12
  from pytorch_lightning import seed_everything
13
  from huggingface_hub import hf_hub_download
 
14
 
15
  sys.path.insert(0, "scripts/evaluation")
16
  from funcs import (
@@ -39,6 +40,7 @@ def check_move(trajectory, video_length=16):
39
 
40
  return True
41
 
 
42
  def infer(*user_args):
43
  prompt_in = user_args[0]
44
  target_indices = user_args[1]
 
11
  import torchvision
12
  from pytorch_lightning import seed_everything
13
  from huggingface_hub import hf_hub_download
14
+ import spaces
15
 
16
  sys.path.insert(0, "scripts/evaluation")
17
  from funcs import (
 
40
 
41
  return True
42
 
43
+ @spaces.GPU(duration=120)
44
  def infer(*user_args):
45
  prompt_in = user_args[0]
46
  target_indices = user_args[1]