Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -144,7 +144,7 @@ def infer(video_in):
|
|
144 |
'--original_args', 'ckpt/vta-ldm-clip4clip-v-large/summary.jsonl',
|
145 |
'--model', 'ckpt/vta-ldm-clip4clip-v-large/pytorch_model_2.bin',
|
146 |
'--data_path', folder_path,
|
147 |
-
'--max_duration', video_duration
|
148 |
]
|
149 |
process = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True, bufsize=1)
|
150 |
|
|
|
144 |
'--original_args', 'ckpt/vta-ldm-clip4clip-v-large/summary.jsonl',
|
145 |
'--model', 'ckpt/vta-ldm-clip4clip-v-large/pytorch_model_2.bin',
|
146 |
'--data_path', folder_path,
|
147 |
+
'--max_duration', f"{video_duration}"
|
148 |
]
|
149 |
process = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True, bufsize=1)
|
150 |
|