GithubHelp home page GithubHelp logo

Comments (2)

rhdunn avatar rhdunn commented on August 17, 2024

This is coming from https://github.com/UlionTse/translators/blob/c20c815ffe0ed75c551eef37d86055d8a8e435c7/translators/server.py#L303.

It is used by TranslatorsServer to initialize the Bing and Google translation service classes. That object is created and assigned to a global variable in that package.

This seems to be a way to handle cookie consent banners from servers in the EU. I.e. Google and Bing are checking where the server is (i.e. using the IP address) and showing a cookie consent banner unless that has been authorised.

Ideally, that project should:

  • use the same default region code as the Bing and Google classes when initializing TranslatorsServer as a constructor option;
  • add an API on TranslatorsServer to specify the region to use, allowing callers (such as this project) to set the region when needed (doing this would update the region on the Bing and Google classes) -- e.g. deferring the request to the first time a translation is performed;
  • or better yet, have a flag to enable region computation and compute the region when first trying to call the Bing or Google translation service.

from xtts-webui.

SyzGuru avatar SyzGuru commented on August 17, 2024

I have the same problem
I think it would need just some error handling when checking the translators connections.
Im no programmer specialist, but some kind of "on error resume" would do
for using all this in offline mode.
(Í hope they dont kick me out of github for this comment)

but the file is a compiled one, and i have no clue how to do

from xtts-webui.

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.