Skip to content

Commit

Permalink
Update requirements.txt and TypeError error has been fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
kadirnar committed Nov 23, 2023
1 parent bf7e10c commit dc14c2c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
10 changes: 6 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
gradio==4.5.0
gradio==4.7.1
moviepy==1.0.3
numpy==1.26.2
pyannote.audio==3.1.0
pytube==15.0.0
Requests==2.31.0
torch==2.1.0
torchaudio==2.1.0
transformers==4.35.2
accelerate
moviepy
pyannote
1 change: 1 addition & 0 deletions whisperplus/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from whisperplus.pipelines.summarization import TextSummarizationPipeline
from whisperplus.pipelines.whisper import SpeechToTextPipeline
from whisperplus.pipelines.whisper_diarize import ASRDiarizationPipeline
from whisperplus.utils.download_utils import download_and_convert_to_mp3
from whisperplus.utils.text_utils import format_speech_to_dialogue

Expand Down
2 changes: 1 addition & 1 deletion whisperplus/utils/text_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def format_speech_to_dialogue(speech_text):
str: Formatted text in dialogue format.
"""
# Parse the given text appropriately
dialog_list = eval(speech_text)
dialog_list = eval(str(speech_text))
dialog_text = ""

for i, turn in enumerate(dialog_list):
Expand Down

0 comments on commit dc14c2c

Please sign in to comment.