{"id":30130783,"url":"https://github.com/veralvx/babellica","last_synced_at":"2026-04-10T15:08:25.643Z","repository":{"id":306988277,"uuid":"941255498","full_name":"veralvx/babellica","owner":"veralvx","description":"Command-line tool for text translation using LLMs or ArgosTranslate. Optional Gradio Web-UI.","archived":false,"fork":false,"pushed_at":"2025-07-28T19:44:43.000Z","size":42,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-28T21:39:23.711Z","etag":null,"topics":["ai","argos","artificial-intelligence","bash","bashscript","docker","dockerfile","gradio","llm","llms","ollama","podman","python","shellscript","translate","translation","translations","translator","webui"],"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/veralvx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2025-03-01T21:15:31.000Z","updated_at":"2025-07-28T19:44:47.000Z","dependencies_parsed_at":"2025-07-28T21:39:32.843Z","dependency_job_id":"2f60096e-9298-4d89-b55b-a87af96b1b12","html_url":"https://github.com/veralvx/babellica","commit_stats":null,"previous_names":["veralvx/babellica"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/veralvx/babellica","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/veralvx%2Fbabellica","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/veralvx%2Fbabellica/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/veralvx%2Fbabellica/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/veralvx%2Fbabellica/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/veralvx","download_url":"https://codeload.github.com/veralvx/babellica/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/veralvx%2Fbabellica/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269763846,"owners_count":24471895,"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","status":"online","status_checked_at":"2025-08-10T02:00:08.965Z","response_time":71,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["ai","argos","artificial-intelligence","bash","bashscript","docker","dockerfile","gradio","llm","llms","ollama","podman","python","shellscript","translate","translation","translations","translator","webui"],"created_at":"2025-08-10T18:05:45.957Z","updated_at":"2025-12-30T21:47:59.745Z","avatar_url":"https://github.com/veralvx.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Babellica\n\nCommand-line tool for text translation using LLMs or ArgosTranslate. Optional Gradio Web-UI.\n\n## Summary\n\n- [Usage](#usage)\n- [Requirements](#requirements)\n    - [Packages](#packages)\n    - [Argos Translate](#argos-translate)\n- [Docker/Podman](#dockerpodman)\n\n\n## Usage\n\n`./babellica.sh \u003cinput_file\u003e \u003coutput_file\u003e \u003cfrom_lang\u003e \u003cto_lang\u003e [llm|argos]`\n\n\n`from_lang` and `to_lang` arguments may follow [ISO 639](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes). There are 50 language names and codes specified in `babellica.sh`. If there is no correspondence, the program will use what was given as an argument, being that a valid language or not.\n \n\nThe last argument can be either `llm` or `argos`. If it is not provided, it will use the default value: `llm`.\n\n\nExample:\n\n`./babellica.sh input.srt output.srt en pt llm`\n\n\n### Set a specific model\n\n`./babellica.sh setmodel [model_name] [temperature] [system_message]`\n\n\nExample:\n\n\n`./babellica.sh setmodel aya-expanse:32b 0.2`\n \n\n## Requirements\n\n### Packages\n\n#### System Packages\n\n- [`ollama`](https://github.com/ollama/ollama)\n- [`pandoc`](https://github.com/jgm/pandoc)\n- `poppler-utils`\n- `perl`\n\n#### Pip Packages\n\n- [`ollama`](https://github.com/ollama/ollama)\n- [`ebooklib`]\n- [`argostranslate`](https://github.com/argosopentech/argos-translate)\n- [`torch`](https://pytorch.org/get-started/locally/)\n\n## Docker/Podman\n\n### CLI:\n\n```\npodman build -f Dockerfile.cli -t babellica:cli\n```\n\nThen, run mounting your `pwd` to `/workspace`:\n\n```\npodman run -it --rm --volume $(pwd):/workspace babellica:cli --gpus=all babellica:cli \u003cargs\u003e\n```\n\nAlias:\n\n```\necho \"alias babellica:cli='podman run -it --rm --volume \\$(pwd):/workspace --gpus=all babellica:cli'\" \u003e\u003e ~/.bashrc\n```\n\n### Gradio:\n\n```\npodman build -f Dockerfile.gradio -t babellica:gradio\n```\n\n```\npodman run -it --rm -p 7860:7680 --gpus=all babellica:gradio\n```\n\nAlias:\n\n```\necho \"alias babellica:gradio='podman run -it --rm --gpus=all babellica:gradio'\" \u003e\u003e ~/.bashrc\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fveralvx%2Fbabellica","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fveralvx%2Fbabellica","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fveralvx%2Fbabellica/lists"}