Skip to content

Commit

Permalink
v0.1.1b2
Browse files Browse the repository at this point in the history
  • Loading branch information
wasertech committed Mar 10, 2023
1 parent 42d2717 commit 1bf3458
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion translator/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from translator.translate import Translator

__version__ = "0.1.1b1"
__version__ = "0.1.1b2"

LANGS = [
"ace_Arab",
Expand Down
2 changes: 2 additions & 0 deletions translator/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ def main():
if Path(output_path).exists() and Path(output_path).is_file():
translated_dataset = load_dataset('text', data_files={'translated': [output_path]}, streaming=False, split="translated", cache_dir=f"{output_path.replace('.txt', f'{_from}.{_to}.tmp.cache')}")
translations = translated_dataset['text']
spinner.info(f"Translated {len(translations)} sentences already.")
spinner.start()
else:
spinner.info("Not translated any sentences yet.")
spinner.start()
Expand Down

0 comments on commit 1bf3458

Please sign in to comment.