victor HF staff commited on
Commit
2139548
1 Parent(s): 0469d7f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1,3 +1,4 @@
 
1
  import gradio as gr
2
  import os
3
  from demo.motiondirector import MotionDirector
@@ -16,7 +17,7 @@ if (is_spaces):
16
 
17
  runner = MotionDirector()
18
 
19
-
20
  def motiondirector(model_select, text_pormpt, neg_text_pormpt, random_seed=1, steps=25, guidance_scale=7.5, baseline_select=False):
21
  return runner(model_select, text_pormpt, neg_text_pormpt, int(random_seed) if random_seed != "" else 1, int(steps), float(guidance_scale), baseline_select)
22
 
 
1
+ import spaces
2
  import gradio as gr
3
  import os
4
  from demo.motiondirector import MotionDirector
 
17
 
18
  runner = MotionDirector()
19
 
20
+ @spaces.GPU
21
  def motiondirector(model_select, text_pormpt, neg_text_pormpt, random_seed=1, steps=25, guidance_scale=7.5, baseline_select=False):
22
  return runner(model_select, text_pormpt, neg_text_pormpt, int(random_seed) if random_seed != "" else 1, int(steps), float(guidance_scale), baseline_select)
23