Skip to content

Commit

Permalink
Merge pull request #19 from kadirnar/fix-type
Browse files Browse the repository at this point in the history
Update requirements.txt and TypeError error has been fixed.
  • Loading branch information
kadirnar authored Nov 23, 2023
2 parents bf7e10c + dc14c2c commit 9ceb18b
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 9ceb18b

Please sign in to comment.