This commit is contained in:
parent
d541fab5c1
commit
8232f56827
|
|
@ -9,6 +9,7 @@ RUN apt-get update && \
|
||||||
apt-get install -y --no-install-recommends \
|
apt-get install -y --no-install-recommends \
|
||||||
build-essential \
|
build-essential \
|
||||||
git \
|
git \
|
||||||
|
unzip \
|
||||||
curl && \
|
curl && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
|
@ -39,7 +40,12 @@ RUN pip install --no-cache-dir ./evalscope
|
||||||
|
|
||||||
# ✅ 安装 nltk 并下载 punkt 模型(到 /nltk_data)
|
# ✅ 安装 nltk 并下载 punkt 模型(到 /nltk_data)
|
||||||
RUN pip install --no-cache-dir nltk && \
|
RUN pip install --no-cache-dir nltk && \
|
||||||
python3 -m nltk.downloader -d /nltk_data punkt punkt_tab
|
python3 -m nltk.downloader -d /nltk_data punkt
|
||||||
|
|
||||||
|
COPY punkt_tab.zip ./punkt_tab.zip
|
||||||
|
|
||||||
|
RUN mkdir -p /usr/local/nltk_data/tokenizers && \
|
||||||
|
unzip -q punkt_tab.zip -d /usr/local/nltk_data/tokenizers
|
||||||
|
|
||||||
# 拷贝入口文件
|
# 拷贝入口文件
|
||||||
COPY gradio_ui.py .
|
COPY gradio_ui.py .
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue