Skip to content

Commit 38b0f3d

Browse files
committed
Compile before publish
1 parent bee1d42 commit 38b0f3d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

simple_publish_model/simple_publish_model.ipynb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,8 @@
124124
" \"text\": \"This is a very positive review for the movie. I absolutely loved it!\"\n",
125125
"}\n",
126126
"\n",
127-
"latest_hash = client.algo(algo_namespace).info().version_info.git_hash\n",
127+
"algo = client.algo(algo_namespace)\n",
128+
"latest_hash = algo.info().version_info.git_hash\n",
128129
"algo_test = client.algo(\"{}/{}\".format(algo_namespace,latest_hash))\n",
129130
"print(\"Result: {}\".format(algo_test.pipe(algo_input).result))"
130131
]
@@ -147,7 +148,8 @@
147148
"outputs": [],
148149
"source": [
149150
"# Now let's publish/deploy our algorithm\n",
150-
"client.algo(algo_namespace).publish()"
151+
"algo.compile()\n",
152+
"algo.publish()"
151153
]
152154
},
153155
{
@@ -201,4 +203,4 @@
201203
},
202204
"nbformat": 4,
203205
"nbformat_minor": 2
204-
}
206+
}

0 commit comments

Comments
 (0)