Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -19,11 +19,11 @@ def run_inference(prompt, video_path, condition, video_length):
|
|
| 19 |
print(video_length)
|
| 20 |
video_length = int(video_length)
|
| 21 |
print(video_length)
|
| 22 |
-
command = f"python inference.py --prompt '{prompt}' --condition '{condition}' --video_path '{video_path}' --output_path '
|
| 23 |
subprocess.run(command, shell=True)
|
| 24 |
|
| 25 |
# Construct the video path
|
| 26 |
-
video_path_output = f"
|
| 27 |
return "done", video_path_output
|
| 28 |
|
| 29 |
|
|
|
|
| 19 |
print(video_length)
|
| 20 |
video_length = int(video_length)
|
| 21 |
print(video_length)
|
| 22 |
+
command = f"python inference.py --prompt '{prompt}' --condition '{condition}' --video_path '{video_path}' --output_path '' --video_length {video_length} --smoother_steps 19 20"
|
| 23 |
subprocess.run(command, shell=True)
|
| 24 |
|
| 25 |
# Construct the video path
|
| 26 |
+
video_path_output = f"{prompt}.mp4"
|
| 27 |
return "done", video_path_output
|
| 28 |
|
| 29 |
|