Giter Site home page Giter Site logo

Comments (4)

Torbat avatar Torbat commented on July 25, 2024 1

After reinstalling webui app it now works.

I think the problem was that I had Python 3.10.9.
Now it's Python 3.10.6.

Now I can test this extension.
I think using Facebook's MBart translator model is an interesting idea.

from prompt_translator.

ParisNeo avatar ParisNeo commented on July 25, 2024

Thank you for your message.
It seems to be some problem with your protobuf version. How did you install the webui app? Are you using a custom python initerpreter that you installed by yourself or are you using your own virtual environment or conda environment?

If you use the installer provided with the tool, it should work. I have tested it on two different PCs and I didn't have any trouble with that.
Normally, after downloading the model and the tokenizer, you should see:
Translator ready
On the UI, you should see the list of languages.

The process takes some time to download at first.

My tool uses Facebook's MBart translator model. It allows you to translate offline once downloaded. I didn't want to use google because you need connection and also I have to pay to use it. Since I'm doing this all for free, I've chosen to use an offline model.

from prompt_translator.

Torbat avatar Torbat commented on July 25, 2024

@ParisNeo
I used to install
[EmpireMediaScience/A1111-Web-UI-Installer: Complete installer for Automatic1111's infamous Stable Diffusion WebUI]
(https://github.com/EmpireMediaScience/A1111-Web-UI-Installer)

As far as I understand, your code uses an older version of protobuf?

If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.If you cannot immediately regenerate your protos, some other possible workarounds are:
 1. Downgrade the protobuf package to 3.20.x or lower.
 2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).

More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates

I will try to reinstall webui app.

from prompt_translator.

ParisNeo avatar ParisNeo commented on July 25, 2024

I hope you like it. This evening, I am going to do some upgrades to solve some issues. Thank you for testing this extension :)

from prompt_translator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.