Browse Source

[to #45546922]feat: add fasttext package

Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/10431169

    * [to #45546922]feat: add fasttext package
master
mulin.lyh 3 years ago
parent
commit
ac07b719e9
2 changed files with 3 additions and 3 deletions
  1. +1
    -1
      docker/Dockerfile.ubuntu
  2. +2
    -2
      modelscope/hub/errors.py

+ 1
- 1
docker/Dockerfile.ubuntu View File

@@ -76,7 +76,7 @@ RUN pip install --no-cache-dir --upgrade pip && \
ENV SHELL=/bin/bash ENV SHELL=/bin/bash


# install special package # install special package
RUN pip install --no-cache-dir mmcls>=0.21.0 mmdet>=2.25.0 decord>=0.6.0 datasets==2.1.0 numpy==1.18.5 ipykernel fairseq
RUN pip install --no-cache-dir mmcls>=0.21.0 mmdet>=2.25.0 decord>=0.6.0 datasets==2.1.0 numpy==1.18.5 ipykernel fairseq fasttext https://modelscope.oss-cn-beijing.aliyuncs.com/releases/dependencies/xtcocotools-1.12-cp37-cp37m-linux_x86_64.whl


RUN if [ "$USE_GPU" = "True" ] ; then \ RUN if [ "$USE_GPU" = "True" ] ; then \
pip install --no-cache-dir dgl-cu113 dglgo -f https://data.dgl.ai/wheels/repo.html; \ pip install --no-cache-dir dgl-cu113 dglgo -f https://data.dgl.ai/wheels/repo.html; \


+ 2
- 2
modelscope/hub/errors.py View File

@@ -53,8 +53,8 @@ def handle_http_post_error(response, url, request_body):
try: try:
response.raise_for_status() response.raise_for_status()
except HTTPError as error: except HTTPError as error:
logger.error('Request %s with body: %s exception, respoonse body: %s' %
(url, request_body, response.body))
logger.error('Request %s with body: %s exception' %
(url, request_body))
raise error raise error






Loading…
Cancel
Save