Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add tests
  • Loading branch information
detorresramos committed May 20, 2024
commit 3442e0d68638d7da301d4778f5149731dfed23bc
4 changes: 2 additions & 2 deletions docker_images/thirdai/tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
# Tests do not check the actual values of the model output, so small dummy
# models are recommended for faster tests.
TESTABLE_MODELS: Dict[str, str] = {
"text-classification": "thirdai/INSERT_CLASSIFICATION_MODEL_HERE",
"token-classification": "thirdai/INSERT_NER_MODEL_HERE",
"text-classification": "thirdai/Classification",
"token-classification": "thirdai/NamedEntityRecognition",
}


Expand Down
12 changes: 12 additions & 0 deletions tests/test_dockers.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,18 @@ def test_timm(self):
self.framework_docker_test("timm", "image-classification", "sgugger/resnet50d")
self.framework_invalid_test("timm")

def test_thirdai(self):
self.framework_docker_test(
"thirdai",
"text-classification",
"thirdai/Classification",
)
self.framework_docker_test(
"thirdai",
"token-classification",
"thirdai/NamedEntityRecognition",
)

def test_diffusers(self):
self.framework_docker_test(
"diffusers",
Expand Down