Skip to content

Commit

Permalink
Fix video description naming (#654)
Browse files Browse the repository at this point in the history
  • Loading branch information
zechengz committed Jun 17, 2024
1 parent 99a11fa commit c4656c9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion camel/prompts/task_prompt_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
TaskType.SOLUTION_EXTRACTION: SolutionExtractionPromptTemplateDict(), # noqa: E501
TaskType.ROLE_DESCRIPTION: RoleDescriptionPromptTemplateDict(),
TaskType.OBJECT_RECOGNITION: ObjectRecognitionPromptTemplateDict(), # noqa: E501
TaskType.DESCRIPTE_VIDEO: DescriptionVideoPromptTemplateDict(),
TaskType.VIDEO_DESCRIPTION: DescriptionVideoPromptTemplateDict(), # noqa: E501
}
)
2 changes: 1 addition & 1 deletion camel/types/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ class TaskType(Enum):
ROLE_DESCRIPTION = "role_description"
OBJECT_RECOGNITION = "object_recognition"
DEFAULT = "default"
DESCRIPTE_VIDEO = "descripte_video"
VIDEO_DESCRIPTION = "video_description"


class VectorDistance(Enum):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

# Define system message
sys_msg_prompt = PromptTemplateGenerator().get_prompt_from_key(
TaskType.DESCRIPTE_VIDEO, RoleType.ASSISTANT
TaskType.VIDEO_DESCRIPTION, RoleType.ASSISTANT
)
sys_msg = BaseMessage.make_assistant_message(
role_name="Assistant",
Expand Down

0 comments on commit c4656c9

Please sign in to comment.