Skip to content

Commit fadcfb0

Browse files
committed
TO TEST: App - register functions in serverledge
1 parent be393d3 commit fadcfb0

1 file changed

Lines changed: 66 additions & 0 deletions

File tree

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
#!/bin/bash
2+
bin/serverledge-cli create -function sa_retrieve \
3+
-memory 256 \
4+
-runtime custom \
5+
-custom_image sa-sentiment-analysis-retrieve \
6+
--input "data_url:Text" \
7+
--input "local_dir:Text" \
8+
--input "object_name:Text" \
9+
--output "status:Text" \
10+
--output "local_download:Bool" \
11+
--output "uploaded:Bool" \
12+
--output "object_name:Text"
13+
14+
15+
bin/serverledge-cli create -function sa_extract \
16+
-memory 256 \
17+
-runtime custom \
18+
-custom_image sa-sentiment-analysis-extract \
19+
--input "tgz_input_object_name:Text" \
20+
--input "subset:Float" \
21+
--input "local_dataset_file:Text" \
22+
--input "local_output_dir:Text" \
23+
--input "output_train_object_name:Text" \
24+
--input "output_test_object_name:Text" \
25+
--output "status:Text" \
26+
--output "train_object_name:Text" \
27+
--output "test_object_name:Text" \
28+
--output "running_time:Float"
29+
30+
31+
32+
bin/serverledge-cli create -function sa_train \
33+
-memory 256 \
34+
-runtime custom \
35+
-custom_image sa-sentiment-analysis-train \
36+
--input "subset:Float" \
37+
--input "max_features:Int" \
38+
--input "train_object_data:Text" \
39+
--input "local_train_file:Text" \
40+
--input "local_model_file:Text" \
41+
--input "local_vectorizer_file:Text" \
42+
--input "output_model_object:Text" \
43+
--input "output_vectorizer_object:Text"
44+
--output "status:Text" \
45+
--output "model_object_name:Text" \
46+
--output "vectorizer_object_name:Text" \
47+
--output "running_time:Float"
48+
49+
50+
51+
bin/serverledge-cli create -function sa_evaluate \
52+
-memory 256 \
53+
-runtime custom \
54+
-custom_image sa-sentiment-analysis-evaluate \
55+
--input "test_object_data:Text" \
56+
--input "local_test_file:Text" \
57+
--input "subset:Float" \
58+
--input "local_model_file:Text" \
59+
--input "local_vectorizer_file:Text" \
60+
--input "input_model_object:Text" \
61+
--input "input_vectorizer_object:Text" \
62+
--output "status:Text" \
63+
--output "accuracy:Float" \
64+
--output "running_time:Float"
65+
66+
## TODO: How to support environment variables?

0 commit comments

Comments
 (0)