Skip to content

Commit 02b77e7

Browse files
committed
updates property name
1 parent cd18ee3 commit 02b77e7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

app.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,12 @@ def _annotate(self, mmif, **kwargs):
3030
new_view = mmif.new_view()
3131
self.sign_view(new_view, kwargs)
3232

33-
contain = new_view.new_contain(AnnotationTypes.TimeFrame)
34-
contain.set_additional_property("timeUnit", "frame")
33+
new_view.new_contain(AnnotationTypes.TimeFrame, timeUnit="frame", document=vd.id)
3534
for int_id, (start_frame, end_frame) in enumerate(scenes_output):
3635
annotation = new_view.new_annotation(AnnotationTypes.TimeFrame)
3736
annotation.add_property("start", start_frame)
3837
annotation.add_property("end", end_frame)
39-
annotation.add_property("frameType", "shot")
38+
annotation.add_property("label", "shot")
4039
return mmif
4140

4241
@staticmethod

0 commit comments

Comments
 (0)