Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
# -*- coding: utf-8 -*-
|
2 |
# Copyright 2024-2025 The Alibaba Wan Team Authors. All rights reserved
|
|
|
3 |
import logging,os
|
4 |
os.makedirs("/root/weights",exist_ok=True)
|
5 |
cmd="huggingface-cli download IndexTeam/AnisoraV3 --include=\"14B/*\" --local-dir=/root/weights --token %s"%os.environ['token']
|
@@ -256,6 +257,7 @@ def generate(args):
|
|
256 |
t5_cpu=args.t5_cpu,
|
257 |
)
|
258 |
|
|
|
259 |
def generate_i2v(prompt,img,seed,nf,speed):
|
260 |
logging.info("Generating video ...")
|
261 |
save_file="output/%s-%s-%s-%s.mp4"%(seed,nf,speed,int(ttime()))
|
|
|
1 |
# -*- coding: utf-8 -*-
|
2 |
# Copyright 2024-2025 The Alibaba Wan Team Authors. All rights reserved
|
3 |
+
import spaces
|
4 |
import logging,os
|
5 |
os.makedirs("/root/weights",exist_ok=True)
|
6 |
cmd="huggingface-cli download IndexTeam/AnisoraV3 --include=\"14B/*\" --local-dir=/root/weights --token %s"%os.environ['token']
|
|
|
257 |
t5_cpu=args.t5_cpu,
|
258 |
)
|
259 |
|
260 |
+
@spaces.GPU
|
261 |
def generate_i2v(prompt,img,seed,nf,speed):
|
262 |
logging.info("Generating video ...")
|
263 |
save_file="output/%s-%s-%s-%s.mp4"%(seed,nf,speed,int(ttime()))
|