Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -29,7 +29,7 @@ def print_directory_contents(path, indent=0):
|
|
29 |
print(' ' * indent + "[权限错误,无法访问该目录]")
|
30 |
|
31 |
# 拉取数据集
|
32 |
-
os.makedirs(local_dir,
|
33 |
hf_api = HfApi(token=hf_token)
|
34 |
repo_id = "Vchitect/VBench_sampled_video"
|
35 |
dataset_files = api.list_repo_files(repo_id=repo_id, token=hf_token, repo_type='dataset')
|
|
|
29 |
print(' ' * indent + "[权限错误,无法访问该目录]")
|
30 |
|
31 |
# 拉取数据集
|
32 |
+
os.makedirs(local_dir, exist_ok=True)
|
33 |
hf_api = HfApi(token=hf_token)
|
34 |
repo_id = "Vchitect/VBench_sampled_video"
|
35 |
dataset_files = api.list_repo_files(repo_id=repo_id, token=hf_token, repo_type='dataset')
|