ynhe commited on
Commit
142cffe
·
verified ·
1 Parent(s): 3bd61fe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -42,6 +42,11 @@ for i in hf_api.list_repo_tree('Vchitect/VBench_sampled_video',repo_type='datase
42
 
43
  with open("videos_by_dimension.json") as f:
44
  dimension = json.load(f)['videos_by_dimension']
 
 
 
 
 
45
 
46
  # with open("all_videos.json") as f:
47
  # all_videos = json.load(f)
 
42
 
43
  with open("videos_by_dimension.json") as f:
44
  dimension = json.load(f)['videos_by_dimension']
45
+ for key in dimension:
46
+ new_item = []
47
+ for item in dimension[key]:
48
+ new_item.append(os.path.basename(item))
49
+ dimension[key] = new_item
50
 
51
  # with open("all_videos.json") as f:
52
  # all_videos = json.load(f)