-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cache for Image Query ID's Originating from the Edge Endpoint (#17)
* iqe_cache * add `iqe_` cache * Automatically reformatting code with black and isort * edge detector manager class * Automatically reformatting code with black and isort * formatting --------- Co-authored-by: Blaise Munyampirwa <blaise@paleo.positronix.ai> Co-authored-by: Auto-format Bot <autoformatbot@groundlight.ai>
- Loading branch information
1 parent
987634c
commit 54de94d
Showing
5 changed files
with
41 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
class EdgeDetectorManager: | ||
""" | ||
Fow now this class is just a container for the IQE cache. | ||
The cache allows us to control the SDK's polling behavior for image queries | ||
without having to change the SDK itself. | ||
""" | ||
|
||
def __init__(self) -> None: | ||
# Cache for image query responses whose IDs start with "iqe_". This is needed | ||
# because the cloud API does not currently recognize these IDs. | ||
self.iqe_cache = {} |
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