Skip to content

Commit 3a73ead

Browse files
authored
Merge pull request #4 from viam-labs/fix-api
Move from subtype to api
2 parents 9f4bf41 + e229374 commit 3a73ead

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77

88
from .verificationclassifier import VerificationSystem
99

10-
Registry.register_resource_creator(VisionClient.SUBTYPE, VerificationSystem.MODEL, ResourceCreatorRegistration(VerificationSystem.new, VerificationSystem.validate))
10+
Registry.register_resource_creator(VisionClient.API, VerificationSystem.MODEL, ResourceCreatorRegistration(VerificationSystem.new, VerificationSystem.validate))

src/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
async def main():
88
module = Module.from_args()
9-
module.add_model_from_registry(VisionClient.SUBTYPE, VerificationSystem.MODEL)
9+
module.add_model_from_registry(VisionClient.API, VerificationSystem.MODEL)
1010
await module.start()
1111

1212
if __name__ == "__main__":

0 commit comments

Comments
 (0)