Skip to content

google_translate extension improved by me and chatgpt for oobabooga/text-generation-webui

Notifications You must be signed in to change notification settings

Vasyanator/google_translate_plus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Google translate plus

This is an extension for https://github.com/oobabooga/text-generation-webui.

This is an improved version of the https://github.com/oobabooga/text-generation-webui/tree/main/extensions/google_translate extension.

Functions

  • Preserves strings after translation by replacing \n with @ before translating the text and vice versa.
  • Some text fragment may not be translated if it is taken between special characters (default ~). Example: ~### Instruction:~ <your instruction> ~### Response:~ which the model will see as ~### Instruction:~ <your translated instruction> ~### Response:~
  • You can enable or disable translation of user input and AI output.

Developed with the aim to fix the following issues present in other translation extensions:

  • Does not return an error if the text is too large for the Google Translate API. This extension translates each paragraph separately.
  • Retains all paragraphs in the translated text. This extension translates each paragraph individually, and then merges them.

About

google_translate extension improved by me and chatgpt for oobabooga/text-generation-webui

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages