Skip to content

Commit 9ceb18b

Browse files
authored
Merge pull request #19 from kadirnar/fix-type
Update requirements.txt and TypeError error has been fixed.
2 parents bf7e10c + dc14c2c commit 9ceb18b

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

requirements.txt

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
gradio==4.5.0
1+
gradio==4.7.1
2+
moviepy==1.0.3
3+
numpy==1.26.2
4+
pyannote.audio==3.1.0
25
pytube==15.0.0
6+
Requests==2.31.0
37
torch==2.1.0
8+
torchaudio==2.1.0
49
transformers==4.35.2
5-
accelerate
6-
moviepy
7-
pyannote

whisperplus/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from whisperplus.pipelines.summarization import TextSummarizationPipeline
22
from whisperplus.pipelines.whisper import SpeechToTextPipeline
3+
from whisperplus.pipelines.whisper_diarize import ASRDiarizationPipeline
34
from whisperplus.utils.download_utils import download_and_convert_to_mp3
45
from whisperplus.utils.text_utils import format_speech_to_dialogue
56

whisperplus/utils/text_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def format_speech_to_dialogue(speech_text):
99
str: Formatted text in dialogue format.
1010
"""
1111
# Parse the given text appropriately
12-
dialog_list = eval(speech_text)
12+
dialog_list = eval(str(speech_text))
1313
dialog_text = ""
1414

1515
for i, turn in enumerate(dialog_list):

0 commit comments

Comments
 (0)