Commit
•
9de0ad3
1
Parent(s):
48f2aa4
Update app.py
Browse files
app.py
CHANGED
@@ -13,12 +13,15 @@ from PIL import Image
|
|
13 |
|
14 |
import uuid
|
15 |
import random
|
16 |
-
from huggingface_hub import hf_hub_download
|
17 |
|
18 |
#gradio.helpers.CACHED_FOLDER = '/data/cache'
|
19 |
|
20 |
SECRET_TOKEN = os.getenv('SECRET_TOKEN', 'default_secret')
|
21 |
|
|
|
|
|
|
|
22 |
pipe = StableVideoDiffusionPipeline.from_pretrained(
|
23 |
"stabilityai/stable-video-diffusion-img2vid-xt-1-1",
|
24 |
torch_dtype=torch.float16,
|
|
|
13 |
|
14 |
import uuid
|
15 |
import random
|
16 |
+
from huggingface_hub import login, hf_hub_download
|
17 |
|
18 |
#gradio.helpers.CACHED_FOLDER = '/data/cache'
|
19 |
|
20 |
SECRET_TOKEN = os.getenv('SECRET_TOKEN', 'default_secret')
|
21 |
|
22 |
+
HF_API_KEY = os.getenv('HF_API_KEY', '')
|
23 |
+
login(token=HF_API_KEY)
|
24 |
+
|
25 |
pipe = StableVideoDiffusionPipeline.from_pretrained(
|
26 |
"stabilityai/stable-video-diffusion-img2vid-xt-1-1",
|
27 |
torch_dtype=torch.float16,
|