multimodalart HF staff commited on
Commit
7adec1e
1 Parent(s): ad7c047

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -13,7 +13,7 @@ from PIL import Image
13
  import uuid
14
  import random
15
  from huggingface_hub import hf_hub_download
16
-
17
  #gradio.helpers.CACHED_FOLDER = '/data/cache'
18
 
19
  pipe = StableVideoDiffusionPipeline.from_pretrained(
@@ -25,6 +25,7 @@ pipe.unet = torch.compile(pipe.unet, mode="reduce-overhead", fullgraph=True)
25
 
26
  max_64_bit_int = 2**63 - 1
27
 
 
28
  def sample(
29
  image: Image,
30
  seed: Optional[int] = 42,
 
13
  import uuid
14
  import random
15
  from huggingface_hub import hf_hub_download
16
+ import spaces
17
  #gradio.helpers.CACHED_FOLDER = '/data/cache'
18
 
19
  pipe = StableVideoDiffusionPipeline.from_pretrained(
 
25
 
26
  max_64_bit_int = 2**63 - 1
27
 
28
+ @spaces.GPU
29
  def sample(
30
  image: Image,
31
  seed: Optional[int] = 42,