bpiyush commited on
Commit
18cc1c5
·
1 Parent(s): 9f217c9
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -152,6 +152,8 @@ if __name__ == "__main__":
152
  csv_path = "./clips.csv"
153
  ann_dirs = glob(join(".", "annotations_", "*"))
154
  annot_paths = glob(join(".", "annotations_*", "*_filtered.json"))
 
 
155
  print("Total number of clips: {}".format(len(annot_paths)))
156
 
157
 
@@ -213,7 +215,7 @@ if __name__ == "__main__":
213
  grid[i][j].caption(f"Segment duration: {duration}")
214
  url = f"https://www.youtube.com/embed/{video_id}?start={int(start)}&end={int(end)}"
215
  html_code = f"""
216
- <iframe height="320" width="420" src="{url}" frameborder="0" allowfullscreen></iframe>
217
  """
218
  grid[i][j].markdown(html_code, unsafe_allow_html=True)
219
  grid[i][j].caption(f"{labels[idx]}")
 
152
  csv_path = "./clips.csv"
153
  ann_dirs = glob(join(".", "annotations_", "*"))
154
  annot_paths = glob(join(".", "annotations_*", "*_filtered.json"))
155
+ per_video_width = 360
156
+ per_video_height = 240
157
  print("Total number of clips: {}".format(len(annot_paths)))
158
 
159
 
 
215
  grid[i][j].caption(f"Segment duration: {duration}")
216
  url = f"https://www.youtube.com/embed/{video_id}?start={int(start)}&end={int(end)}"
217
  html_code = f"""
218
+ <iframe height="{per_video_height}" width="{per_video_width}" src="{url}" frameborder="0" allowfullscreen></iframe>
219
  """
220
  grid[i][j].markdown(html_code, unsafe_allow_html=True)
221
  grid[i][j].caption(f"{labels[idx]}")