Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -22,6 +22,9 @@ def print_directory_contents(path):
|
|
| 22 |
subindent = ' ' * 4 * (level + 1)
|
| 23 |
for f in files:
|
| 24 |
print(f"{subindent}{f}")
|
|
|
|
|
|
|
|
|
|
| 25 |
|
| 26 |
def infer(video_in):
|
| 27 |
|
|
@@ -31,7 +34,7 @@ def infer(video_in):
|
|
| 31 |
print(f"VIDEO IN PATH: {video_in}")
|
| 32 |
|
| 33 |
# Execute the inference command
|
| 34 |
-
command = ['python', 'inference_from_video.py', '--data_path', video_in]
|
| 35 |
process = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True, bufsize=1)
|
| 36 |
|
| 37 |
# Create threads to handle stdout and stderr
|
|
|
|
| 22 |
subindent = ' ' * 4 * (level + 1)
|
| 23 |
for f in files:
|
| 24 |
print(f"{subindent}{f}")
|
| 25 |
+
|
| 26 |
+
# Print the ckpt directory contents
|
| 27 |
+
print_directory_contents('./ckpt')
|
| 28 |
|
| 29 |
def infer(video_in):
|
| 30 |
|
|
|
|
| 34 |
print(f"VIDEO IN PATH: {video_in}")
|
| 35 |
|
| 36 |
# Execute the inference command
|
| 37 |
+
command = ['python', 'inference_from_video.py', '--original_args', 'ckpt/vta-ldm-clip4clip-v-large/summary.jsonl', '--data_path', video_in]
|
| 38 |
process = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True, bufsize=1)
|
| 39 |
|
| 40 |
# Create threads to handle stdout and stderr
|