camenduru / text-generation-webui-colab

A colab gradio web UI for running Large Language Models
The Unlicense
2.07k stars 367 forks source link

unable to use google_translate_plus extension #37

Open flotufox opened 11 months ago

flotufox commented 11 months ago

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