Spaces:
Sleeping
Sleeping
Update run.py
Browse files
run.py
CHANGED
@@ -36,12 +36,12 @@ def fast_caption(sys_prompt, usr_prompt, temp, top_p, max_tokens, model, key, en
|
|
36 |
# Process all videos in the dataset
|
37 |
all_captions = []
|
38 |
with tempfile.NamedTemporaryFile(mode='w+t', delete=True) as temp_parquet_file:
|
39 |
-
temp_parquet_file
|
40 |
repo_id=video_hf,
|
41 |
filename='data/' + str(parquet_index).zfill(6) + '.parquet',
|
42 |
repo_type="dataset",
|
43 |
token=video_hf_auth,
|
44 |
-
)
|
45 |
parquet_path = temp_parquet_file.name
|
46 |
print(parquet_path)
|
47 |
parquet_file = pq.ParquetFile(parquet_path)
|
|
|
36 |
# Process all videos in the dataset
|
37 |
all_captions = []
|
38 |
with tempfile.NamedTemporaryFile(mode='w+t', delete=True) as temp_parquet_file:
|
39 |
+
temp_parquet_file.write(hf_hub_download(
|
40 |
repo_id=video_hf,
|
41 |
filename='data/' + str(parquet_index).zfill(6) + '.parquet',
|
42 |
repo_type="dataset",
|
43 |
token=video_hf_auth,
|
44 |
+
))
|
45 |
parquet_path = temp_parquet_file.name
|
46 |
print(parquet_path)
|
47 |
parquet_file = pq.ParquetFile(parquet_path)
|