Skip to content
Snippets Groups Projects
Commit 10ab37c3 authored by ml bonhomme's avatar ml bonhomme :bee:
Browse files

orientation in simple tr serializer

parent 7fa7c626
No related branches found
No related tags found
No related merge requests found
......@@ -328,6 +328,7 @@ class SimpleTranscriptionSerializer(serializers.Serializer):
max_value=1,
required=False,
)
orientation = EnumField(TextOrientation, default=TextOrientation.HorizontalLeftToRight, required=False)
def validate(self, data):
if not ('score' in data) ^ ('confidence' in data):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment