Skip to content

Commit

Permalink
fix translations in push_to_argilla
Browse files Browse the repository at this point in the history
  • Loading branch information
jmargutt committed Apr 5, 2024
1 parent 3ae9495 commit 6c389b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sml/load.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def push_to_argilla(self, messages, dataset_name, tags=None):
inputs = {'Original message': message.text}
if message.translations:
for translation in message.translations:
inputs[f"Translation ({next(iter(translation))})"] = next(iter(translation.values()))
inputs[f"Translated message"] = translation['text']
inputs['Message number'] = ix + 1
inputs['Channel'] = message.group

Expand Down

0 comments on commit 6c389b8

Please sign in to comment.