Closed guispfilho closed 2 months ago
Hi @guispfilho
The error that is occurring is happening before AllTalk is active in the script.
File "C:\appli\apps\text-generation-webui\modules\html_generator.py", line 53, in convert_to_markdown string = re.sub(r'(^|[\n])>', r'\1>', string) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\appli\apps\text-generation-webui\installer_files\env\Lib\re__init__.py", line 185, in sub return _compile(pattern, flags).sub(repl, string, count)
The file html_generator.py is a part of Text-gen-webui and not AllTalk. It runs various filtering behaviours on the text that goes into and out of the LLM. It will both pre process LLM text before it sends it onto any Text-gen-webui extensions and it will also process the return from any text-gen-webui extensions, for the purposes to ensure that the text can still be displayed post processing by the extensions.
Here you can see I have added a print statement to the html_generator.py, stated text-gen-webui without AllTalk loaded and its running through that print statement multiple times just on starting up Text-gen-webui.
I believe this is because it processes whatever is in the current chat window and it checks it on start-up e.g.
As such, I think you may have something strange or corrupt within your chat window OR the LLM you are using is sending something very odd through the text-gen-webui pre-processors. I know that you have to make certain setup changes when using a Llama 3 model, though Im not exactly sure what, but that could be related. Ultimately, this issue is somewhere within text-gen-webui's code (I believe) and It will call on certain functions in pretty much any extension that can interact with the LLM's generated text, so it wouldnt be unique to AllTalk.
So I have a few suggestions from here:
1) Do you start Text-gen-webui with startwindows.bat? Please make sure you do as it loads the text-gen-webui built Python environment, You mention installing Python 3.9. You shouldnt have to install Python yourself manually as text-gen-webui builds its own Python environment and you should always start text-gen-webui with the start{youros}.xxx file. Unless you have a very specific reason to run a custom python environment (which can cause issues), you should always run the file I mentioned (also mentioned here) https://github.com/oobabooga/text-generation-webui?tab=readme-ov-file#how-to-install
2) Please clear your chat window in text-gen-webui (New chat) and see if that loads up cleaner afterwards.
3) Re: But as I was adding new .wav folders to the "voices" folder
there is no code within AllTalk that will actively monitor your voices folder. The only time the list of whats in the voices folder is accessed is when either AllTalk starts up, or when you manually click the refresh button in the AllTalk extension. So if your text-gen-webui froze at that, it suggests something else going on with your system.
I dont know how much you do or dont know about Python environments, but I wrote a basic primer here https://github.com/erew123/alltalk_tts?tab=readme-ov-file#installation-and-setup-issues and that covers off a few things with Text-gen-webui.
In principle though, I cannot see anything wrong showing from the diagnostics file/setup, though, that is as long as you are starting text-gen-webui with the start_windows.bat file. I built a fresh install of text-gen-webui myself 2x days ago, so I would be on a similar build to yourself (version wise) as text-gen-webui has had no commits for 4x days.
I have been using AllTalk and text-gen-webui and not personally experienced an issue, but that leads me back to the possibility of maybe the LLM you may be using and what its sending into the chat window.
If you go through the above and have no success, I would suggest that maybe you look at the text-gen-webui discussion/issues board. Beyond that you could send me an JSON chat file from your text-gen-webui and I can try see if there is something funny in the chat history that could cause the fault, though again, this is more than likely to fall back to being a text-gen-webui thing to look into.
Chat logs are kept in text-generation-webui\logs\chat\
(probably the Assistant folder if you arent using a character).
Just for reference, the actual fault/error message is saying this bit of code:
File "C:\appli\apps\text-generation-webui\modules\html_generator.py", line 53, in convert_to_markdown
string = re.sub(r'(^|[\n])>', r'\1>', string)
in your error, has a value of None
, meaning that there is no text-string from the LLM to process.
Please get back to me if you need to.
Thanks
diagnostics.log Describe the bug I had just installed text-generation-webui, and add AllTalk as an extension. It was working perfectly at the beginning, however, after 10-20 minutes I'm receiving the same error message when starting text-generation-webui, or trying to do anything within it
To Reproduce 1- Installed Python 3.9 2- Installed text-generation-webui using git clone https://github.com/oobabooga/text-generation-webui.git and running start_windows.bat 3- Ran text-generation-webui for the first time and closed it 4- Installed alltalk_tts into the extensions folder using git clone https://github.com/erew123/alltalk_tts, running atsetup.bat and selecting "BASE REQUIREMENTS: 1) Apply/Re-Apply the requirements for Text-generation-webui." 5- Ran text-generation-webui again and selected alltalk as a extension at the "session" tab. 6- Restarted text-generation-webui and everything was working fine. But as I was adding new .wav folders to the "voices" folder, text-generation-webui stopped working, returning the same error message after restarting it, or clicking anywhere. 7- Unchecking AllTalk checkbox in the "chat" tab fixes the issue.
Desktop (please complete the following information): AllTalk was updated: 12/05/2024 (installed today) Custom Python environment: no Text-generation-webUI was updated: 12/05/2024 (installed today)
Additional context
Maybe the error have something to do with the TTS Method, I don't know if it's only showing up after switching out of XTTSv2 Local.
Diagnostics file added.
System: RTX 4070 - MSI AMD 7700X 32GB DDR5 Windows 11