Skip to content

Commit

Permalink
removing classycat garbage code
Browse files Browse the repository at this point in the history
  • Loading branch information
ashkankzme committed Aug 15, 2024
1 parent 8e6f491 commit 5505b4c
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lib/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,6 @@ def parse_input_message(message_data: Dict) -> Message:
if result_instance is None: # in case the model does not have a parse_input_message method implemented
if 'yake_keywords' in model_name:
result_instance = YakeKeywordsResponse(**result_data)
elif 'classycat' in model_name:
event_type = body_data['parameters']['event_type']
if event_type == 'classify':
result_instance = ClassyCatBatchClassificationResponse(**result_data)
elif event_type == 'schema_lookup' or event_type == 'schema_create':
result_instance = ClassyCatSchemaResponse(**result_data)
else:
result_instance = ClassyCatResponse(**result_data)
elif 'video' in model_name:
result_instance = VideoResponse(**result_data)
else:
Expand Down

0 comments on commit 5505b4c

Please sign in to comment.