有人有一个简单的helloworld Python笔记本作为web服务发布吗
我试过了,却犯了各种各样的错误
from azureml import services
#from azure.storage.blob import BlobService
services._DEBUG = True
#Use your own workspace information below!
workpace_id= '*****'
auth_token = '*****'
from azureml import services
@services.publish(workpace_id, auth_token)
@services.types()
@services.returns(str)
def myHello():
return 'Hello World'
我建议你看看this article
如果返回类型为“str”,请注意。您将获得字节值。以下是我的结果:
相关问题 更多 >
编程相关推荐