Skip to content

Resolve Relevancy Task Error #255

@maxachis

Description

@maxachis

After uploading URLs from label studio for #161, the relevancy task kicked off and yielded the following error:

Could not parse JSON from subprocess: 
Traceback (most recent call last):
  File "/app/core/classes/task_operators/TaskOperatorBase.py", line 50, in run_task
    await self.inner_task_logic()
  File "/app/core/classes/task_operators/URLRelevanceHuggingfaceTaskOperator.py", line 33, in inner_task_logic
    await self.add_huggingface_relevancy(tdos)
  File "/app/core/classes/task_operators/URLRelevanceHuggingfaceTaskOperator.py", line 49, in add_huggingface_relevancy
    results = await self.huggingface_interface.get_url_relevancy_async(urls_with_html)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/hugging_face/HuggingFaceInterface.py", line 33, in get_url_relevancy_async
    raise RuntimeError(f"Could not parse JSON from subprocess: {raw_output}")
RuntimeError: Could not parse JSON from subprocess: 

Let's look into that, shall we?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐛Something isn't working

    Type

    No type

    Projects

    Status

    Future

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions