kunhaokhliu commited on
Commit
c259bb1
·
1 Parent(s): 5d4f125
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -84,6 +84,7 @@ def _load_pipeline(config_path: str, checkpoint_path: Optional[str], use_ema: bo
84
  def build_predict(config_path: str, checkpoint_path: Optional[str], output_dir: str, use_ema: bool):
85
  os.makedirs(output_dir, exist_ok=True)
86
 
 
87
  def predict(prompt: str, num_frames: int) -> str:
88
  if not prompt or not prompt.strip():
89
  raise gr.Error("Please enter a non-empty text prompt.")
 
84
  def build_predict(config_path: str, checkpoint_path: Optional[str], output_dir: str, use_ema: bool):
85
  os.makedirs(output_dir, exist_ok=True)
86
 
87
+ @spaces.GPU
88
  def predict(prompt: str, num_frames: int) -> str:
89
  if not prompt or not prompt.strip():
90
  raise gr.Error("Please enter a non-empty text prompt.")