diff --git a/Dockerfile b/Dockerfile index fe16e95..79a59f9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,14 @@ +#FROM python:3.8.13 FROM artifacts.iflytek.com/docker-private/atp/base_image_for_ailab:0.0.1 WORKDIR /app -COPY . /app +COPY requirements.txt /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 a61a52e..7d4a920 100644 --- a/app.py +++ b/app.py @@ -24,7 +24,8 @@ def sentiment_analysis(text): demo = gr.Interface(fn=sentiment_analysis, inputs='text', outputs='text', - title = "文本情感分析", + css = "footer {visibility: hidden}", + allow_flagging = "never", theme=theme )