fffiloni commited on
Commit
e59e841
·
1 Parent(s): 65f40ed

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -16,6 +16,7 @@ for model_id in model_ids:
16
  import subprocess
17
 
18
  def run_inference(prompt, video_path, condition, video_length):
 
19
  command = "python inference.py --prompt prompt --condition condition --video_path video_path --output_path 'outputs/' --video_length video_length --smoother_steps 19 20"
20
  output = subprocess.check_output(command, shell=True, text=True)
21
  output = output.strip() # Remove any leading/trailing whitespace
 
16
  import subprocess
17
 
18
  def run_inference(prompt, video_path, condition, video_length):
19
+ video_length = int(video_length)
20
  command = "python inference.py --prompt prompt --condition condition --video_path video_path --output_path 'outputs/' --video_length video_length --smoother_steps 19 20"
21
  output = subprocess.check_output(command, shell=True, text=True)
22
  output = output.strip() # Remove any leading/trailing whitespace