Skip to content

Commit ce97f7e

Browse files
committed
fixed issue #10 and #11
1 parent 64c3567 commit ce97f7e

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

app.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,7 @@ def run_on_video(self, mmif: Mmif, videodocument: Document, new_view: View, **co
9191
+ mmif, annotated with boundingboxes
9292
"""
9393
cap = vdh.capture(videodocument)
94-
views_with_tframe = [v for v in mmif.get_views_for_document(videodocument.id)
95-
if v.metadata.contains[AnnotationTypes.TimeFrame]]
94+
views_with_tframe = mmif.get_views_contain(AnnotationTypes.TimeFrame)
9695
if views_with_tframe:
9796
frame_type = set(config["frameType"])
9897
frame_type.discard("") # after this, if this set is empty, the next step will use "all" types
@@ -144,7 +143,7 @@ def get_app():
144143
if __name__ == "__main__":
145144

146145
parser = argparse.ArgumentParser()
147-
parser.add_argument("--port", action="store", default="5000", help="set port to listen" )
146+
parser.add_argument("--port", action="store", default="3000", help="set port to listen" )
148147
parser.add_argument("--production", action="store_true", help="run gunicorn server")
149148
# add more arguments as needed
150149
# parser.add_argument(more_arg...)

metadata.py

-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ def appmetadata() -> AppMetadata:
3333
metadata.add_parameter(
3434
name="frameType",
3535
type="string",
36-
choices=["", "slate", "chyron", "rolling-credit"],
3736
default="",
3837
multivalued=True,
3938
description="Segments of video to run on. Only works with VideoDocument input and TimeFrame input. Empty value means run on the every frame types.",

0 commit comments

Comments
 (0)