diff --git a/docs/web/docs/guides/how_to_use/video_annotator/configuration/config_files.md b/docs/web/docs/guides/how_to_use/video_annotator/configuration/config_files.md index 22203c71a..0056ac4f8 100644 --- a/docs/web/docs/guides/how_to_use/video_annotator/configuration/config_files.md +++ b/docs/web/docs/guides/how_to_use/video_annotator/configuration/config_files.md @@ -30,7 +30,7 @@ Working config examples are provided in `examples/video_annotator_demo/data` dir - separate tokens values: `dynamic/separate_token_values_config.json` to create `token_sets_values_config.json` - resulting extrapolated config: `dynamic/task_data.json` -_To understand what the concept of "tokens" means, see [Using multiple form versions](/docs/guides/how_to_use/video_annotator/configuration/multiple_form_versions/) section._ +_To understand what the concept of "tokens" means, see [Using multiple form versions](/docs/guides/how_to_use/video_annotator/configuration/multiple_annotator_versions/) section._ --- diff --git a/examples/video_annotator_demo/data/dynamic/separate_token_values_config.json b/examples/video_annotator_demo/data/dynamic/separate_token_values_config.json index 8489c8619..c60ede868 100644 --- a/examples/video_annotator_demo/data/dynamic/separate_token_values_config.json +++ b/examples/video_annotator_demo/data/dynamic/separate_token_values_config.json @@ -1,4 +1,6 @@ { - "video_path": ["http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/"], + "video_path": [ + "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/" + ], "video_file": ["BigBuckBunny.mp4"] } diff --git a/mephisto/review_app/client/src/pages/TaskPage/TaskPage.tsx b/mephisto/review_app/client/src/pages/TaskPage/TaskPage.tsx index fe4cb6d9c..c17cfb19b 100644 --- a/mephisto/review_app/client/src/pages/TaskPage/TaskPage.tsx +++ b/mephisto/review_app/client/src/pages/TaskPage/TaskPage.tsx @@ -4,12 +4,10 @@ * LICENSE file in the root directory of this source tree. */ -import InitialParametersCollapsable - from "components/InitialParametersCollapsable/InitialParametersCollapsable"; +import InitialParametersCollapsable from "components/InitialParametersCollapsable/InitialParametersCollapsable"; import { InReviewFileModal } from "components/InReviewFileModal/InReviewFileModal"; import ResultsCollapsable from "components/ResultsCollapsable/ResultsCollapsable"; -import VideoAnnotatorWebVTTCollapsable - from "components/VideoAnnotatorWebVTTCollapsable/VideoAnnotatorWebVTTCollapsable"; +import VideoAnnotatorWebVTTCollapsable from "components/VideoAnnotatorWebVTTCollapsable/VideoAnnotatorWebVTTCollapsable"; import WorkerOpinionCollapsable from "components/WorkerOpinionCollapsable/WorkerOpinionCollapsable"; import { MESSAGES_IFRAME_DATA_KEY, diff --git a/mephisto/review_app/client/src/pages/UnitPage/UnitPage.tsx b/mephisto/review_app/client/src/pages/UnitPage/UnitPage.tsx index 75dfc9d5a..aa29b8e16 100644 --- a/mephisto/review_app/client/src/pages/UnitPage/UnitPage.tsx +++ b/mephisto/review_app/client/src/pages/UnitPage/UnitPage.tsx @@ -4,21 +4,22 @@ * LICENSE file in the root directory of this source tree. */ -import InitialParametersCollapsable - from "components/InitialParametersCollapsable/InitialParametersCollapsable"; +import InitialParametersCollapsable from "components/InitialParametersCollapsable/InitialParametersCollapsable"; import { InReviewFileModal } from "components/InReviewFileModal/InReviewFileModal"; import ResultsCollapsable from "components/ResultsCollapsable/ResultsCollapsable"; import TasksHeader from "components/TasksHeader/TasksHeader"; -import VideoAnnotatorWebVTTCollapsable - from "components/VideoAnnotatorWebVTTCollapsable/VideoAnnotatorWebVTTCollapsable"; +import VideoAnnotatorWebVTTCollapsable from "components/VideoAnnotatorWebVTTCollapsable/VideoAnnotatorWebVTTCollapsable"; import WorkerOpinionCollapsable from "components/WorkerOpinionCollapsable/WorkerOpinionCollapsable"; -import { MESSAGES_IFRAME_DATA_KEY, MESSAGES_IN_REVIEW_FILE_DATA_KEY } from "consts/review"; +import { + MESSAGES_IFRAME_DATA_KEY, + MESSAGES_IN_REVIEW_FILE_DATA_KEY, +} from "consts/review"; import { setPageTitle } from "helpers"; import * as React from "react"; import { useEffect } from "react"; import { Spinner } from "react-bootstrap"; import { useParams } from "react-router-dom"; -import { getTask } from 'requests/tasks'; +import { getTask } from "requests/tasks"; import { getUnits, getUnitsDetails } from "requests/units"; import urls from "urls"; import "./UnitPage.css"; diff --git a/mephisto/review_app/server/utils/video_annotator.py b/mephisto/review_app/server/utils/video_annotator.py index 221164e19..e1b196320 100644 --- a/mephisto/review_app/server/utils/video_annotator.py +++ b/mephisto/review_app/server/utils/video_annotator.py @@ -193,7 +193,7 @@ def convert_annotation_tracks_to_webvtt( return None webvtt = WebVTT( - header_comments=[f"Mephisto Task \"{task_name}\""], + header_comments=[f'Mephisto Task "{task_name}"'], footer_comments=["Copyright (c) Meta Platforms and its affiliates."], ) diff --git a/packages/mephisto-task-addons/src/VideoAnnotator/AnnotationTrack.jsx b/packages/mephisto-task-addons/src/VideoAnnotator/AnnotationTrack.jsx index af033e668..02ddb82b0 100644 --- a/packages/mephisto-task-addons/src/VideoAnnotator/AnnotationTrack.jsx +++ b/packages/mephisto-task-addons/src/VideoAnnotator/AnnotationTrack.jsx @@ -415,7 +415,9 @@ function AnnotationTrack({ duration={duration} isSelectedAnnotationTrack={isSelectedAnnotationTrack} key={`track-segment-${segmentIndex}`} - onClickSegment={(e, index) => segmentIsValid && onClickSegment(e, index)} + onClickSegment={(e, index) => + segmentIsValid && onClickSegment(e, index) + } paddingLeft={paddingLeft} playerSizes={playerSizes} segment={segment} diff --git a/packages/mephisto-task-addons/src/VideoAnnotator/VideoAnnotator.jsx b/packages/mephisto-task-addons/src/VideoAnnotator/VideoAnnotator.jsx index 0285a83a6..e41a2c6ce 100644 --- a/packages/mephisto-task-addons/src/VideoAnnotator/VideoAnnotator.jsx +++ b/packages/mephisto-task-addons/src/VideoAnnotator/VideoAnnotator.jsx @@ -268,8 +268,8 @@ function VideoAnnotator({ {annotatorInstruction && (