modified: build.sh
Build-Deploy-Actions
Details
Build-Deploy-Actions
Details
This commit is contained in:
parent
0b3e5f9bae
commit
61c256537b
3
app.py
3
app.py
|
@ -17,7 +17,8 @@ def inference(text):
|
|||
|
||||
print(outputs[0])
|
||||
last_hidden_states = outputs.last_hidden_state
|
||||
return outputs[0]
|
||||
result = tokenizer.decode(outputs[0], skip_special_tokens=True)
|
||||
return result
|
||||
|
||||
examples=[["Studies have been shown that owning a dog is good for you"]]
|
||||
|
||||
|
|
2
build.sh
2
build.sh
|
@ -1,6 +1,6 @@
|
|||
export release_name="translation-t5-large"
|
||||
export image="artifacts.iflytek.com/docker-private/atp/aicloud/translation"
|
||||
export version="493bdb2a46"
|
||||
export version="0b3e5f9bae"
|
||||
export gpu=true
|
||||
helm upgrade -n default --install $release_name --set image.repository="$image" \
|
||||
--set image.tag="$version" --set image.pullPolicy=Always --set service.port=7860 \
|
||||
|
|
Loading…
Reference in New Issue