Skip to content

Commit

Permalink
medium model.
Browse files Browse the repository at this point in the history
  • Loading branch information
boocmp committed Aug 14, 2024
1 parent 142973a commit 08610b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/configuration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ runners:
resources:
cpu: 4
nvidia.com/gpu: 1
workers_per_resource: 10
workers_per_resource: 12
4 changes: 2 additions & 2 deletions src/runners/audio_transcriber.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,15 +136,15 @@ def __init__(self):

print(self.device, " ", compute_type)

model = "base.en"
model = "medium"
self.model = whisper.load_model(
whisper_arch=model, device=self.device, compute_type=compute_type
)

def transcribe(self, audios):
result = self.model.transcribe(
audios,
batch_size=8,
batch_size=10,
language="en",
print_progress=True,
combined_progress=True,
Expand Down

0 comments on commit 08610b4

Please sign in to comment.