diff --git a/Dockerfile b/Dockerfile index 671699b..f900b26 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,10 @@ -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 0bebded..ded16a8 100644 --- a/app.py +++ b/app.py @@ -30,6 +30,6 @@ demo = gr.Interface(fn=sentiment_analysis, if __name__ == "__main__": - demo.queue(concurrency_count=3) + demo.queue(concurrency_count=10) demo.launch() diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index f8e1863..0000000 --- a/requirements.txt +++ /dev/null @@ -1,3 +0,0 @@ -gradio -transformers -torch