From c2e46add5c2b5860b992465eee581d058636f92e Mon Sep 17 00:00:00 2001 From: jianjiang Date: Wed, 26 Apr 2023 16:31:54 +0800 Subject: [PATCH] roberta --- Dockerfile | 3 ++- app.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index e6f7bb5..c4a909f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,9 +3,10 @@ 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 2fea7b8..15426cd 100644 --- a/app.py +++ b/app.py @@ -36,7 +36,8 @@ demo = gr.Interface(fn=sentiment_analysis, outputs='text', examples=[['I am happy', 'negative, netural, positive'], ['I am sad', 'negative, netural, positive']], theme = theme, - title = "文本情感分析" + css = "footer {visibility: hidden}", + allow_flagging = "never" )