EvanTHU commited on
Commit
fe4ce89
1 Parent(s): 53e40ab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -297,6 +297,7 @@ def get_processor(X, config, device, pretrained_checkpoint_tower, model_path = '
297
 
298
  return mm_backbone_mlp_model, processor
299
 
 
300
  @spaces.GPU
301
  def motionllm(
302
  args,
@@ -346,7 +347,8 @@ def motionllm(
346
  print("================================")
347
  print(output)
348
  print("================================")
349
-
 
350
  return output, input_prompt, prompt
351
 
352
 
@@ -363,7 +365,7 @@ def save_video_to_local(video_path):
363
  shutil.copyfile(video_path, filename)
364
  return filename
365
 
366
- # @spaces.GPU
367
  def generate(image1, video, textbox_in, first_run, state, images_tensor):
368
  flag = 1
369
 
 
297
 
298
  return mm_backbone_mlp_model, processor
299
 
300
+
301
  @spaces.GPU
302
  def motionllm(
303
  args,
 
347
  print("================================")
348
  print(output)
349
  print("================================")
350
+
351
+ prompt = (prompt[0].cpu(), prompt[1])
352
  return output, input_prompt, prompt
353
 
354
 
 
365
  shutil.copyfile(video_path, filename)
366
  return filename
367
 
368
+ @spaces.GPU
369
  def generate(image1, video, textbox_in, first_run, state, images_tensor):
370
  flag = 1
371