From 4cd2a9d824ec7ad320de607b506d3db7f09d9e52 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 16 Apr 2023 21:12:57 -0300 Subject: [PATCH 1/3] Bump transformers from 4.28.0 to 4.28.1 (#1288) --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 34eee23..64036d9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -12,7 +12,7 @@ sentencepiece pyyaml tqdm git+https://github.com/huggingface/peft -transformers==4.28.0 +transformers==4.28.1 bitsandbytes==0.38.1; platform_system != "Windows" llama-cpp-python==0.1.34; platform_system != "Windows" https://github.com/abetlen/llama-cpp-python/releases/download/v0.1.34/llama_cpp_python-0.1.34-cp310-cp310-win_amd64.whl; platform_system == "Windows" From 61d6f7f50748b82636737bd50dc4348568d413b9 Mon Sep 17 00:00:00 2001 From: svupper <56261963+svupper@users.noreply.github.com> Date: Mon, 17 Apr 2023 02:17:00 +0200 Subject: [PATCH 2/3] Add dependencies to Dockerfile for TTS extensions (#1276) --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index e9f8dbc..b4fc912 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,7 +26,7 @@ LABEL maintainer="Your Name " LABEL description="Docker image for GPTQ-for-LLaMa and Text Generation WebUI" RUN apt-get update && \ - apt-get install --no-install-recommends -y git python3 python3-pip make g++ && \ + apt-get install --no-install-recommends -y libportaudio2 libasound-dev git python3 python3-pip make g++ && \ rm -rf /var/lib/apt/lists/* RUN --mount=type=cache,target=/root/.cache/pip pip3 install virtualenv From 5011f946597bb5929628886b02baf6b0b0013936 Mon Sep 17 00:00:00 2001 From: GuizzyQC <86683381+GuizzyQC@users.noreply.github.com> Date: Sun, 16 Apr 2023 20:18:52 -0400 Subject: [PATCH 3/3] Improved compatibility between silero and sd_api_pictures (#1196) --- extensions/silero_tts/tts_preprocessor.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/extensions/silero_tts/tts_preprocessor.py b/extensions/silero_tts/tts_preprocessor.py index da16323..eb2ca41 100644 --- a/extensions/silero_tts/tts_preprocessor.py +++ b/extensions/silero_tts/tts_preprocessor.py @@ -66,8 +66,14 @@ def preprocess(string): def remove_surrounded_chars(string): - # this expression matches to 'as few symbols as possible (0 upwards) between any asterisks' OR - # 'as few symbols as possible (0 upwards) between an asterisk and the end of the string' + # first this expression will check if there is a string nested exclusively between a alt= + # and a style= string. This would correspond to only a the alt text of an embedded image + # If it matches it will only keep that part as the string, and rend it for further processing + # Afterwards this expression matches to 'as few symbols as possible (0 upwards) between any + # asterisks' OR' as few symbols as possible (0 upwards) between an asterisk and the end of the string' + if re.search(r'(?<=alt=)(.*)(?=style=)', string, re.DOTALL): + m = re.search(r'(?<=alt=)(.*)(?=style=)', string, re.DOTALL) + string = m.group(0) return re.sub(r'\*[^*]*?(\*|$)', '', string)