Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

bug in "iter_from_json_file" method #246

Open
Surya291 opened this issue Sep 26, 2023 · 0 comments
Open

bug in "iter_from_json_file" method #246

Surya291 opened this issue Sep 26, 2023 · 0 comments

Comments

@Surya291
Copy link

Surya291 commented Sep 26, 2023

`

  if data_type == 'dict':
        data = json.load(json_file)
        for item in self.annotation_result_from_task(data):
            yield item

`

find this snippet at : label_studio_converter/converter.py , line : 360

json.load expects an fp , but according to arguments in this method json_file is a str (path of the file).

Please add a snippet to open the file as fp and use json.loads

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant