9ca9bbf
public lzfxxx 6 years ago
1 changed file(s) with 22 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
1616 " - ```_README.md```*-----说明文档*\n",
1717 " - ```app_spec.yml```*-----定义项目的输入输出,为部署服务*\n",
1818 " - ```coding_here.ipynb```*-----输入并运行代码*"
19 ]
20 },
21 {
22 "cell_type": "code",
23 "execution_count": null,
24 "metadata": {},
25 "outputs": [],
26 "source": [
27 "def handle(conf): \n",
28 " \"\"\"\n",
29 " 该方法是部署之后,其他人调用你的服务时候的处理方法。\n",
30 " 请按规范填写参数结构,这样我们就能替你自动生成配置文件,方便其他人的调用。\n",
31 " 范例:\n",
32 " params['key'] = value # value_type: str # description: some description\n",
33 " value_type 可以选择:img, video, audio, str, int, float, [int], [str], [float]\n",
34 " 参数请放到params字典中,我们会自动解析该变量。\n",
35 " \"\"\"\n",
36 " \n",
37 " param1 = conf['param1'] # value_type: str # description: some description\n",
38 " # add your code\n",
39 " return {'ret1': 'cat'}\n",
40 " "
1941 ]
2042 },
2143 {