ikergarcia1996 / Easy-Translate

Easy-Translate is a script for translating large text files with a SINGLE COMMAND. Easy-Translate is designed to be as easy as possible for beginners and as seamlesscustomizable and as possible for advanced users.
Apache License 2.0
189 stars 306 forks source link

API plans? #10

Open BaGRoS opened 1 year ago

BaGRoS commented 1 year ago

Any plans to add a simple API even on a server running from Python?

BaGRoS

ikergarcia1996 commented 1 year ago

Hi!

The goal of this repository is to create a very simple script so people can translate data for their research without losing any time writing their own script. However, I could consider writing a Gradio demo that runs a server if it can be useful for people. It should be very easy to reformat the code into a gradio server.

Gradio demos can be run as an interface and you can also make API calls to the server. Is this the idea you had in mind? https://www.gradio.app/demos

BaGRoS commented 1 year ago

I would like to use this to translate a wordpress blog into multiple languages. I have two ways to go. The first is to write everything in Python, a longer solution. The second is to use a translation plugin that supports custom API calls so that I can just configure it to a local translator.

winstxnhdw commented 1 year ago

Hey @BaGRoS, if you are okay with only calling the NLLB model, you can check out nllb-api. It performs ~1000x faster than Easy-Translate's Streamlit API demo.