fffiloni commited on
Commit
5380d37
·
1 Parent(s): 0efac4e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -29,7 +29,8 @@ def get_video_properties(filepath):
29
  def run_inference(prompt, video_path, condition, video_length):
30
  # Call the function to get the video properties
31
  duration, fps = get_video_properties(video_path)
32
- video_length = int(video_length * fps)
 
33
  output_path = 'output/'
34
  os.makedirs(output_path, exist_ok=True)
35
  command = f"python inference.py --prompt '{prompt}' --condition '{condition}' --video_path '{video_path}' --output_path '{output_path}' --video_length {video_length} --smoother_steps 19 20"
 
29
  def run_inference(prompt, video_path, condition, video_length):
30
  # Call the function to get the video properties
31
  duration, fps = get_video_properties(video_path)
32
+ print(fps)
33
+ #video_length = int(video_length * fps)
34
  output_path = 'output/'
35
  os.makedirs(output_path, exist_ok=True)
36
  command = f"python inference.py --prompt '{prompt}' --condition '{condition}' --video_path '{video_path}' --output_path '{output_path}' --video_length {video_length} --smoother_steps 19 20"