Skip to content

Commit

Permalink
Update image_annotation.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Vismayak committed Aug 27, 2024
1 parent fcae948 commit 7aadc3c
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import pyclowder.files


class WordCount(Extractor):
class ImageAnnotator(Extractor):
"""Count the number of characters, words and lines in a text file."""
def __init__(self):
Extractor.__init__(self)
Expand All @@ -33,6 +33,7 @@ def process_message(self, connector, host, secret_key, resource, parameters):
logger = logging.getLogger(__name__)
inputfile = resource["local_paths"][0]
file_id = resource['id']
print(f"Parameters: {parameters}")

if 'parameters' in parameters:
params = None
Expand All @@ -58,5 +59,5 @@ def process_message(self, connector, host, secret_key, resource, parameters):
pyclowder.files.upload_metadata(connector, host, secret_key, file_id, metadata)

if __name__ == "__main__":
extractor = WordCount()
extractor = ImageAnnotator()
extractor.start()

0 comments on commit 7aadc3c

Please sign in to comment.