Yaron Koresh commited on
Commit
e067df4
·
verified ·
1 Parent(s): a1e8f93

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -30,7 +30,7 @@ height=1024
30
  device = "cuda"
31
  dtype = torch.float16
32
  result=[]
33
- step = 4
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=85)
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