Skip to content

Commit

Permalink
Remove copy-pasted comments
Browse files Browse the repository at this point in the history
  • Loading branch information
greenw0lf committed Mar 28, 2024
1 parent 29f0e82 commit 337704a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 1 addition & 3 deletions models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -23,7 +21,7 @@ class WhisperASRInput:
state: int # HTTP status code
message: str # error/success message
source_id: str = "" # <program ID>__<carrier ID>
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


Expand Down
2 changes: 0 additions & 2 deletions worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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={
Expand Down

0 comments on commit 337704a

Please sign in to comment.