multimodalart HF staff commited on
Commit
2beda72
1 Parent(s): 0629c99

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -1,4 +1,5 @@
1
  import gradio as gr
 
2
  import torch
3
  import os
4
  from glob import glob
@@ -9,11 +10,12 @@ from diffusers import StableVideoDiffusionPipeline
9
  from diffusers.utils import load_image, export_to_video
10
  from PIL import Image
11
 
12
-
13
  import uuid
14
  import random
15
  from huggingface_hub import hf_hub_download
16
 
 
 
17
  pipe = StableVideoDiffusionPipeline.from_pretrained(
18
  "stabilityai/stable-video-diffusion-img2vid-xt", torch_dtype=torch.float16, variant="fp16"
19
  )
 
1
  import gradio as gr
2
+ import gradio.helpers
3
  import torch
4
  import os
5
  from glob import glob
 
10
  from diffusers.utils import load_image, export_to_video
11
  from PIL import Image
12
 
 
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(
20
  "stabilityai/stable-video-diffusion-img2vid-xt", torch_dtype=torch.float16, variant="fp16"
21
  )