Compare commits

...

2 Commits

Author SHA1 Message Date
jianjiang c2e46add5c roberta
Build-Deploy-Actions Details
2023-04-26 16:31:54 +08:00
jianjiang 1a3339315f add package 2023-04-21 18:25:40 +08:00
3 changed files with 5 additions and 2 deletions

View File

@ -3,9 +3,10 @@ FROM artifacts.iflytek.com/docker-private/atp/base_image_for_ailab:0.0.1
WORKDIR /app WORKDIR /app
COPY . /app
RUN pip config set global.index-url https://pypi.mirrors.ustc.edu.cn/simple 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
COPY . /app
CMD ["python", "app.py"] CMD ["python", "app.py"]

3
app.py
View File

@ -36,7 +36,8 @@ demo = gr.Interface(fn=sentiment_analysis,
outputs='text', outputs='text',
examples=[['I am happy', 'negative, netural, positive'], ['I am sad', 'negative, netural, positive']], examples=[['I am happy', 'negative, netural, positive'], ['I am sad', 'negative, netural, positive']],
theme = theme, theme = theme,
title = "文本情感分析" css = "footer {visibility: hidden}",
allow_flagging = "never"
) )

1
requirements.txt Normal file
View File

@ -0,0 +1 @@
protobuf