Skip to content

Commit

Permalink
Update extras and requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
ejohb committed Oct 11, 2024
1 parent 4f8705f commit e85221a
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
15 changes: 15 additions & 0 deletions fmtr/tools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,21 @@
except ImportError as exception:
json_fix = MissingExtraMockModule('json_fix', exception)

try:
from fmtr.tools import semantic_tools as semantic
except ImportError as exception:
semantic = MissingExtraMockModule('semantic', exception)

try:
from fmtr.tools import metric_tools as metric
except ImportError as exception:
metric = MissingExtraMockModule('metric', exception)

try:
from fmtr.tools import html_tools as html
except ImportError as exception:
html = MissingExtraMockModule('html', exception)


__all__ = [
'config',
Expand Down
2 changes: 1 addition & 1 deletion fmtr/tools/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.9.3
0.9.4
5 changes: 4 additions & 1 deletion requirements.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@
'api': ['fastapi', 'uvicorn', 'logging', 'dm'],
'ai': ['peft', 'transformers[sentencepiece]', 'torchvision', 'torchaudio', 'dm'],
'dm': ['pydantic'],
'json-fix': ['json_repair']
'json-fix': ['json_repair'],
'semantic': ['sentence_transformers', 'pandas'],
'metric': ['pandas'],
'html': ['html2text'],
}

CONSOLE_SCRIPTS = [
Expand Down

0 comments on commit e85221a

Please sign in to comment.