Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
amaiya committed Nov 6, 2020
2 parents e7110ba + 42f2d38 commit a1ba6d3
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,19 @@ Most recent releases are shown at the top. Each release shows:
- **Changed**: Additional parameters, changes to inputs or outputs, etc
- **Fixed**: Bug fixes that don't change documented behaviour

## 0.24.1 (2020-11-06)

### New:
- N/A

### Changed
- N/A


### Fixed:
- Change exception in model ID check in `Translator` to warning to better allow offline language translations


## 0.24.0 (2020-11-05)

### New:
Expand Down
2 changes: 1 addition & 1 deletion ktrain/text/translation/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def __init__(self, model_name=None, device=None, half=False):
half(bool): If True, use half precision.
"""
if 'Helsinki-NLP' not in model_name:
raise ValueError('Translator requires a Helsinki-NLP model: https://huggingface.co/Helsinki-NLP')
warnings.warn('Translator requires a Helsinki-NLP model: https://huggingface.co/Helsinki-NLP')
try:
import torch
except ImportError:
Expand Down
2 changes: 1 addition & 1 deletion ktrain/version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__all__ = ['__version__']
__version__ = '0.24.0'
__version__ = '0.24.1'

0 comments on commit a1ba6d3

Please sign in to comment.