fffiloni commited on
Commit
0479125
·
1 Parent(s): 618e51c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -48,10 +48,9 @@ def run_inference(prompt, video_path, condition, video_length):
48
  os.remove(video_path_output)
49
 
50
  if video_length > 12:
51
- command = f"python inference.py --prompt '{prompt}' --condition '{condition}' --video_path '{video_path}' --output_path '{output_path}' --video_length {video_length}"
52
- else:
53
  command = f"python inference.py --prompt '{prompt}' --condition '{condition}' --video_path '{video_path}' --output_path '{output_path}' --video_length {video_length} --is_long_video"
54
-
 
55
  subprocess.run(command, shell=True)
56
 
57
  # Construct the video path
 
48
  os.remove(video_path_output)
49
 
50
  if video_length > 12:
 
 
51
  command = f"python inference.py --prompt '{prompt}' --condition '{condition}' --video_path '{video_path}' --output_path '{output_path}' --video_length {video_length} --is_long_video"
52
+ else:
53
+ command = f"python inference.py --prompt '{prompt}' --condition '{condition}' --video_path '{video_path}' --output_path '{output_path}' --video_length {video_length}"
54
  subprocess.run(command, shell=True)
55
 
56
  # Construct the video path