{"id":18821383,"url":"https://github.com/marian-nmt/pymarian-webapp","last_synced_at":"2026-01-18T07:30:18.813Z","repository":{"id":252150048,"uuid":"839466015","full_name":"marian-nmt/pymarian-webapp","owner":"marian-nmt","description":"Pymarian Webapp","archived":false,"fork":false,"pushed_at":"2024-11-13T14:39:54.000Z","size":455,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-30T03:42:11.732Z","etag":null,"topics":["marian-nmt","transformers","translation","webapp"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/marian-nmt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-07T17:01:15.000Z","updated_at":"2024-10-24T13:44:47.000Z","dependencies_parsed_at":"2024-08-08T01:45:42.277Z","dependency_job_id":"4d1a7c39-ab86-4a18-921c-f0dd46266148","html_url":"https://github.com/marian-nmt/pymarian-webapp","commit_stats":null,"previous_names":["marian-nmt/pymarian-webapp"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marian-nmt%2Fpymarian-webapp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marian-nmt%2Fpymarian-webapp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marian-nmt%2Fpymarian-webapp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marian-nmt%2Fpymarian-webapp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marian-nmt","download_url":"https://codeload.github.com/marian-nmt/pymarian-webapp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239758900,"owners_count":19692041,"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":["marian-nmt","transformers","translation","webapp"],"created_at":"2024-11-08T00:40:02.428Z","updated_at":"2025-02-20T01:14:10.655Z","avatar_url":"https://github.com/marian-nmt.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pymarian Webapp\n\nThis is a webserver for pymarian demo\n\n**Features Supported:**\n* Test Marian models locally with ease\n* Compare multiple models\n* Live translation demo (see translation as you speak or type)\n\n\n## Setup/installation\n\npymarian-webapp requires Python 3.9 or later.\n\n```bash\ngit clone https://github.com/marian-nmt/pymarian-webapp\ncd pymarian-webapp\n\n# optionally create an env\npython3 -m venv venv\n. venv/bin/activate\n\n# install\npip install .\n```\n\n## Start the server\n\nYou need to provide the model with a config file which tells it where to find models. Two models types are supported: a path to a local Marian model, or the [Microsoft Translator API](https://learn.microsoft.com/en-us/azure/ai-services/translator/reference/v3-0-reference), which requires an API subscription key.\n\n```bash\npymarian-webapp -c pymarian_webapp/examples/basic.yml\n```\nThis starts a service on http://localhost:6060 by default. See the config file for other model options.\n\nMore options are available and can be see via the `-h` flag:\n\n```bash\nusage: pymarian-webapp [-h] [-d] [-p PORT] [-ho HOST] [-b BASE] [-c CONFIG] [-e] [-me [METRICS ...]]\n\nDeploy Marian model to a RESTful server\n\noptions:\n  -h, --help            show this help message and exit\n  -d, --debug           Run Flask server in debug mode (default: False)\n  -p PORT, --port PORT  port to run server on (default: 6060)\n  -ho HOST, --host HOST\n                        Host address to bind. (default: 0.0.0.0)\n  -b BASE, --base BASE  Base prefix path for all the URLs. E.g., /v1 (default: None)\n  -c CONFIG, --config CONFIG\n                        Config file with MT models (default: None)\n  -e, --eager           Eagerly load models (default: False)\n  -me [METRICS ...], --metrics [METRICS ...]\n                        List of MT evaluation metrics. Only QE metrics are supported. (default: ['wmt20-comet-qe-da',\n                        'wmt22-cometkiwi-da', 'wmt23-cometkiwi-da-xl'])\n```\n\n## Test multiple translators\n\n```bash\npython -m pymarian_webapp -d -c pymarian_webapp/examples/basic.yml\n```\n\n## Screenshot\n\n![Pymarian Webapp](docs/pymarian-webapp1.png?raw=true \"Pymarian Webapp\")","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarian-nmt%2Fpymarian-webapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarian-nmt%2Fpymarian-webapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarian-nmt%2Fpymarian-webapp/lists"}