translation demo for ascend 910b4

This commit is contained in:
aiyueqi
2025-09-04 15:01:25 +08:00
parent 6efd9331e6
commit 50f01c46e4
7 changed files with 611 additions and 1 deletions

11
Dockerfile Normal file
View File

@@ -0,0 +1,11 @@
FROM swr.cn-south-1.myhuaweicloud.com/ascendhub/cann:8.2.rc1-910b-ubuntu22.04-py3.11
WORKDIR /workspace
COPY requirements.txt /workspace
RUN pip install --no-cache-dir -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
ADD . /workspace
EXPOSE 80
CMD ["sh", "-c", "python3 fastapi_translate.py"]