Compare commits
No commits in common. "c2e46add5c2b5860b992465eee581d058636f92e" and "73e3bbb3dcdce69e2bdc93cfc349887bfc002467" have entirely different histories.
c2e46add5c
...
73e3bbb3dc
|
@ -3,10 +3,9 @@ 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
3
app.py
|
@ -36,8 +36,7 @@ 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,
|
||||||
css = "footer {visibility: hidden}",
|
title = "文本情感分析"
|
||||||
allow_flagging = "never"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
protobuf
|
|
Loading…
Reference in New Issue