Spaces:
Sleeping
Sleeping
Yaron Koresh
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -30,7 +30,7 @@ height=1024
|
|
30 |
device = "cuda"
|
31 |
dtype = torch.float16
|
32 |
result=[]
|
33 |
-
step =
|
34 |
accu=7.5
|
35 |
#repo = "ByteDance/AnimateDiff-Lightning"
|
36 |
#ckpt = f"animatediff_lightning_{step}step_diffusers.safetensors"
|
@@ -130,7 +130,7 @@ def generate_random_string(length):
|
|
130 |
characters = string.ascii_letters + string.digits
|
131 |
return ''.join(random.choice(characters) for _ in range(length))
|
132 |
|
133 |
-
@spaces.GPU(duration=
|
134 |
def Piper(image,positive,negative,motion):
|
135 |
global last_motion
|
136 |
global ip_loaded
|
|
|
30 |
device = "cuda"
|
31 |
dtype = torch.float16
|
32 |
result=[]
|
33 |
+
step = 50
|
34 |
accu=7.5
|
35 |
#repo = "ByteDance/AnimateDiff-Lightning"
|
36 |
#ckpt = f"animatediff_lightning_{step}step_diffusers.safetensors"
|
|
|
130 |
characters = string.ascii_letters + string.digits
|
131 |
return ''.join(random.choice(characters) for _ in range(length))
|
132 |
|
133 |
+
@spaces.GPU(duration=120)
|
134 |
def Piper(image,positive,negative,motion):
|
135 |
global last_motion
|
136 |
global ip_loaded
|