Spaces:
Paused
Paused
Update app.py
Browse files
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
|