Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into 15-containerization
Browse files Browse the repository at this point in the history
  • Loading branch information
greenw0lf committed Mar 28, 2024
2 parents 86437d5 + ff3345d commit 56f7b3a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion config/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ ELASTICSEARCH:
SCHEME: http
INDEX: dane-index-k8s
FILE_SYSTEM:
BASE_MOUNT: data # data when running locally
BASE_MOUNT: /data # data when running locally
INPUT_DIR: input-files
OUTPUT_DIR: output-files
INPUT:
Expand Down
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 56f7b3a

Please sign in to comment.