【发布时间】:2021-06-30 19:31:10
【问题描述】:
**我已经在 aci 中部署了模型端点 1 个月,现在我想更改相同模型的入口脚本中的一些内容,那么我如何在不更改 restendpoint 的情况下做到这一点。?
我的条目脚本如下所示:**
SENTIMENT_THRESHOLDS = (0.4, 0.7)
SEQUENCE_LENGTH = 300
def run(data):
try:
# Pick out the text property of the JSON request.
# This expects a request in the form of {"text": "some text to score for sentiment"}
data = json.loads(data)
prediction = predict(data['text'])
#Return prediction
return prediction
except Exception as e:
error = str(e)
return error
**现在我想更改变量 SEQUENCE_LENGTH 并用这个入口脚本文件更新 restendpoint **
【问题讨论】:
标签: azure machine-learning azure-aks azure-machine-learning-service azure-container-instances