From 337704a3d042b9ebb884fa70734c567809880115 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Drago=C8=99?= Date: Thu, 28 Mar 2024 10:53:22 +0100 Subject: [PATCH] Remove copy-pasted comments --- models.py | 4 +--- worker.py | 2 -- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/models.py b/models.py index f8f9aa2..0c3872c 100644 --- a/models.py +++ b/models.py @@ -12,8 +12,6 @@ class CallbackResponse(TypedDict): # These are the types of output this worker (possibly) provides (depending on configuration) class OutputType(Enum): - # name of output type, should just have a significant name, no other restrictions - # (as far as I understand) TRANSCRIPT = "transcript" PROVENANCE = "provenance" # produced by provenance.py @@ -23,7 +21,7 @@ class WhisperASRInput: state: int # HTTP status code message: str # error/success message source_id: str = "" # __ - input_file_path: str = "" # where the audio was downloaded from + input_file_path: str = "" # where the audio was downloaded to provenance: Optional[Provenance] = None # mostly: how long did it take to download diff --git a/worker.py b/worker.py index bada107..c52c3ab 100644 --- a/worker.py +++ b/worker.py @@ -79,7 +79,6 @@ def callback(self, task: Task, doc: Document) -> CallbackResponse: ) return processing_result - # TODO adapt def save_to_dane_index( self, doc: Document, @@ -88,7 +87,6 @@ def save_to_dane_index( provenance: Provenance, ) -> None: logger.info("saving results to DANE, task id={0}".format(task._id)) - # TODO figure out the multiple lines per transcript (refresh my memory) r = Result( self.generator, payload={