Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-roethig-db committed May 18, 2024
1 parent 43e6064 commit 1ff67a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion amondin/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def transcribe(
:return:
"""

print(f"Running on {device}.")
print(f"Running on {device}...")

print("Diarizing speakers...")
diarized_speakers = diarize_speakers(
Expand Down
2 changes: 1 addition & 1 deletion amondin/speech2text.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from transformers import WhisperProcessor, WhisperForConditionalGeneration


def speech2text(audio: dict, device: str, model: str = "openai/whisper-tiny", language: str = "german") -> str:
def speech2text(audio: dict, device: str, model: str, language: str) -> str:
"""
Translate audio to text
:param device: Device to run the model on [cpu, cuda or cuda:x]
Expand Down

0 comments on commit 1ff67a9

Please sign in to comment.