roberta
Build-Deploy-Actions
Details
Build-Deploy-Actions
Details
This commit is contained in:
parent
b678344a15
commit
7269c652e0
|
@ -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
3
app.py
|
@ -23,7 +23,8 @@ def sentiment_analysis(text):
|
||||||
demo = gr.Interface(fn=sentiment_analysis,
|
demo = gr.Interface(fn=sentiment_analysis,
|
||||||
inputs='text',
|
inputs='text',
|
||||||
outputs='text',
|
outputs='text',
|
||||||
title = "文本情感分析",
|
css = "footer {visibility: hidden}",
|
||||||
|
allow_flagging = "never",
|
||||||
theme = theme
|
theme = theme
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue