From c205adf3261afb01652e3f567adf7d39dc279f2d Mon Sep 17 00:00:00 2001 From: jianjiang Date: Fri, 21 Apr 2023 17:31:11 +0800 Subject: [PATCH] ip --- Dockerfile | 5 ++--- app.py | 3 +-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 671699b..7dad473 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] diff --git a/app.py b/app.py index 359ecb4..b0af631 100644 --- a/app.py +++ b/app.py @@ -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")