Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to use google_translate_plus extension #37

Open
flotufox opened this issue Oct 25, 2023 · 0 comments
Open

unable to use google_translate_plus extension #37

flotufox opened this issue Oct 25, 2023 · 0 comments

Comments

@flotufox
Copy link

using camenduru/text-generation-webui-colab
i used following code to download the extension:
!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://github.com/Vasyanator/google_translate_plus/blob/main/requirements.txt -d /content/text-generation-webui/extensions/google_translate_plus -o requirements.txt
!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://github.com/Vasyanator/google_translate_plus/blob/main/script.py -d /content/text-generation-webui/extensions/google_translate_plus -o script.py
!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://github.com/Vasyanator/google_translate_plus/blob/main/settings.json -d /content/text-generation-webui/extensions/google_translate_plus -o settings.json

i used following code to load the extension:
--extensions google_translate_plus

when i try to run the model, at the stage :
2023-10-15 14:59:48 INFO:Loading the extension "google_translate_plus"...
2023-10-15 14:59:48 ERROR:Failed to load the extension "google_translate_plus".

Traceback (most recent call last):
File "/content/text-generation-webui/modules/extensions.py", line 35, in load_extensions
exec(f"import extensions.{name}.script")
File "", line 1, in
File "/content/text-generation-webui/extensions/google_translate_plus/script.py", line 1, in
{"payload":{"allShortcutsEnabled":false,"fileTree":{"":{"items":[{"name":"README.md","path":"README.md","contentType":"file"},{"name":"requirements.txt","path":"requirements.txt","contentType":"file"},{"name":"script.py","path":"script.py","contentType":"file"},{"name":"settings.json","path":"settings.json","contentType":"file"}],"totalCount":4}},"fileTreeProcessingTime":1.890233,"foldersToFetch":[],"reducedMotionEnabled":null,"repo":........
NameError: name 'false' is not defined

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant