diff --git a/Dockerfile b/Dockerfile index e6f7bb5..e970e27 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,9 +3,11 @@ 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 +COPY . /app + + CMD ["python", "app.py"] diff --git a/app.py b/app.py index bf8f1d7..76f62ff 100644 --- a/app.py +++ b/app.py @@ -31,7 +31,8 @@ demo = gr.Interface(fn=sentiment_analysis, inputs='text', outputs='text', theme = theme, - title = "文本情感分析" + css = "footer {visibility: hidden}", + allow_flagging = "never" )