ip
Build-Deploy-Actions Details

This commit is contained in:
jianjiang 2023-04-21 17:31:11 +08:00
parent ebf70c3fa0
commit c205adf326
2 changed files with 3 additions and 5 deletions

View File

@ -1,10 +1,9 @@
FROM python:3.8.13
FROM artifacts.iflytek.com/docker-private/atp/base_image_for_ailab:0.0.1
WORKDIR /app
COPY . /app
RUN pip config set global.index-url https://pypi.mirrors.ustc.edu.cn/simple
RUN pip install -r requirements.txt
#RUN pip install -r requirements.txt
CMD ["python", "app.py"]

3
app.py
View File

@ -35,5 +35,4 @@ demo = gr.Interface(fn=translation,
if __name__ == "__main__":
demo.queue(concurrency_count=10)
# demo.launch(server_name = "0.0.0.0", server_port = 7028)
demo.launch
demo.launch(server_name = "0.0.0.0")