-
Notifications
You must be signed in to change notification settings - Fork 201
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ba96ad8
commit 58057cc
Showing
44 changed files
with
2,746 additions
and
838 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
client/src/nv_ingest_client/primitives/tasks/chart_extraction.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# SPDX-FileCopyrightText: Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. | ||
# All rights reserved. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
|
||
# pylint: disable=too-few-public-methods | ||
# pylint: disable=too-many-arguments | ||
|
||
import logging | ||
from typing import Dict | ||
|
||
from pydantic import BaseModel | ||
|
||
from .task_base import Task | ||
|
||
logger = logging.getLogger(__name__) | ||
|
||
|
||
class ChartExtractionSchema(BaseModel): | ||
class Config: | ||
extra = "forbid" | ||
|
||
|
||
class ChartExtractionTask(Task): | ||
""" | ||
Object for chart extraction task | ||
""" | ||
|
||
def __init__( | ||
self) -> None: | ||
""" | ||
Setup Dedup Task Config | ||
""" | ||
super().__init__() | ||
|
||
def __str__(self) -> str: | ||
""" | ||
Returns a string with the object's config and run time state | ||
""" | ||
info = "" | ||
info += "chart extraction task\n" | ||
return info | ||
|
||
def to_dict(self) -> Dict: | ||
""" | ||
Convert to a dict for submission to redis | ||
""" | ||
|
||
task_properties = { | ||
"params": {}, | ||
} | ||
|
||
return {"type": "chart_data_extract", "task_properties": task_properties} |
53 changes: 53 additions & 0 deletions
53
client/src/nv_ingest_client/primitives/tasks/table_extraction.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# SPDX-FileCopyrightText: Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. | ||
# All rights reserved. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
|
||
# pylint: disable=too-few-public-methods | ||
# pylint: disable=too-many-arguments | ||
|
||
import logging | ||
from typing import Dict | ||
|
||
from pydantic import BaseModel | ||
|
||
from .task_base import Task | ||
|
||
logger = logging.getLogger(__name__) | ||
|
||
|
||
class TableExtractionSchema(BaseModel): | ||
class Config: | ||
extra = "forbid" | ||
|
||
|
||
class TableExtractionTask(Task): | ||
""" | ||
Object for table extraction tasks | ||
""" | ||
|
||
def __init__( | ||
self) -> None: | ||
""" | ||
Setup Dedup Task Config | ||
""" | ||
super().__init__() | ||
|
||
def __str__(self) -> str: | ||
""" | ||
Returns a string with the object's config and run time state | ||
""" | ||
info = "" | ||
info += "table extraction task\n" | ||
return info | ||
|
||
def to_dict(self) -> Dict: | ||
""" | ||
Convert to a dict for submission to redis | ||
""" | ||
|
||
task_properties = { | ||
"params": {}, | ||
} | ||
|
||
return {"type": "table_data_extract", "task_properties": task_properties} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
58057cc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@drobison00 @sosahi The change for
client/src/nv_ingest_client/cli/util/click.py
makes the nv-client failed to submit ingestion job.It failed with below error:
The
nv-ingest-cli
insider the container worked well. I just copy theclient/src/nv_ingest_client/cli/util/click.py
from the released container and re-install from the source code. It worked. Please fix.