{"id":13689803,"url":"https://github.com/ymoslem/CTranslate-NMT-Web-Interface","last_synced_at":"2025-05-02T06:31:15.624Z","repository":{"id":136325202,"uuid":"380597746","full_name":"ymoslem/CTranslate-NMT-Web-Interface","owner":"ymoslem","description":"Machine Translation (MT) Web Interface for OpenNMT and FairSeq models using CTranslate and Streamlit","archived":false,"fork":false,"pushed_at":"2021-12-24T16:10:09.000Z","size":831,"stargazers_count":15,"open_issues_count":0,"forks_count":4,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-11-12T15:43:11.530Z","etag":null,"topics":["machine-translation","neural-machine-translation","web-interface"],"latest_commit_sha":null,"homepage":"https://blog.machinetranslation.io/nmt-web-interface/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ymoslem.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2021-06-26T21:18:29.000Z","updated_at":"2024-04-09T09:54:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"c6a19b0b-8bbc-4adf-a355-4f894735f8b3","html_url":"https://github.com/ymoslem/CTranslate-NMT-Web-Interface","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ymoslem%2FCTranslate-NMT-Web-Interface","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ymoslem%2FCTranslate-NMT-Web-Interface/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ymoslem%2FCTranslate-NMT-Web-Interface/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ymoslem%2FCTranslate-NMT-Web-Interface/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ymoslem","download_url":"https://codeload.github.com/ymoslem/CTranslate-NMT-Web-Interface/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251998336,"owners_count":21677972,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["machine-translation","neural-machine-translation","web-interface"],"created_at":"2024-08-02T16:00:27.638Z","updated_at":"2025-05-02T06:31:15.308Z","avatar_url":"https://github.com/ymoslem.png","language":"Python","funding_links":[],"categories":["Applications 💻"],"sub_categories":[],"readme":"# CTranslate-NMT-Web-Interface\nMachine Translation (MT) Web Interface for OpenNMT and FairSeq models using *CTranslate* and *Streamlit*.\n\n\n## Install requirements\n\nIt is recommended you first create a virtual environment, and then run:\n\n```\npip3 install -r requirements.txt\n```\n\n## Example 1: Upper My Text\n\nWith [test.py](test.py), you can run a very simple Streamlit example using the command:\n\n```\nstreamlit run test.py\n```\n\n![streamlit-test](/img/streamlit-test.png)\n\n\n## Example 2: Translate\n\nWith [translate.py](translate.py), you can run a fast web translator using CTranslate2. For this example to work, you have to change the paths to your models; search the code for [Modify] and adjust the following lines.\n\n![streamlit-translate](/img/streamlit-translate.png)\n\nNote: This example assumes SentencePiece was used to prepare the data. If you did not use SentencePiece, remove the relevant lines.\n\n\n## Example 3: Translate - Multiple\n\nIf you want your web interface to support multiple languages and/or be able to translate multiple lines like this, you can refer to [translate-multi.py](advanced/translate-multi.py)\n\n![streamlit-translate-multi](/img/streamlit-translate-multi.png)\n\n\n## Tutorial\n\nCheck the detailed instructions at in this [blog tutorial](https://blog.machinetranslation.io/nmt-web-interface/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fymoslem%2FCTranslate-NMT-Web-Interface","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fymoslem%2FCTranslate-NMT-Web-Interface","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fymoslem%2FCTranslate-NMT-Web-Interface/lists"}